1
Guys I have an input and a div':
<input type='text' id='valor' name='valor'>
<div id='valor'><b>R$ 1,00</b></div>
Good need to exchange the value of 1.00 for the value I type in the input. How can I do this in losing the css of the div value?
I wanted to do this using Jquery.
Making an observation in the @Khaosdoctor response, the event change jQuery, is only executed when it loses focus of the input, if you want to run the function while the user type, there are the events keyup, keydown and keypress, depends on what action you need. To learn more about the events: jQuery Events.
– Douglas Garrido
very obligatory to the 2 by the help :) gave right here
– Hugo Borges