I'm dealing with two text box - using jQuery I want that every time the user updates the value in the first box , the same value will apear in the second box.
<input type="text" class="pack"/ > <input type="text" class="pack2"/> $(".pack").keypress(function(){ $(".pack2").val($(this).val()); }); The problem is that if I type a letter in "pack" , it won't appear in "pack2" right away - I'll have to type another letter, and then the first letter will appear in pack2
You can check the fiddle - http://jsfiddle.net/itamarperetz/jGXyA/
What can I so pack2 will be updated right away?
Any suggestion will be helpful, Thanks in advance