Hi all i am new to jQuery. Suppose I have two HTML text boxes. How can I make it happen that if I write in text box A then same value goes to textbox B and if I write in B then
A slightly more efficient way than the most upvoted answer is:
var $inputs = $(".copyMe"); $inputs.keyup(function () { $inputs.val($(this).val()); });
http://css-tricks.com/snippets/jquery/keep-text-inputs-in-sync/