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
Post a Comment