Jquery copy form inputs with keyup -


solved needed use val instead of text. mistake!

what difference when copying form field form field vs copying form field span id?

i can copy input field span id no problem, using same method copy form field form field doesnt work.

using jquery keyup

can enlighten me?

heres demo

thanks in advance

    <input type="text" name="quantity" value="100"  id="quantity2" />     <input type="text" name="quantity" id="quantity_img2" />      $("#quantity2").keyup(function () {     var value = $(this).val();     $("#quantity_img2").text(value);     }).keyup(); 

to set value of textbox element use val() method instead of text().

working demo http://jsfiddle.net/lndya/20/


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -