/ Published in: jQuery
More info on SO: http://stackoverflow.com/questions/4061489/jquery-duplicate-field-input-text-in-real-time
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var $mail = $("#mail"); $("#email").keyup(function() { $mail.val(this.value); }); $("#email").blur(function() { $mail.val(this.value); });
URL: http://jsfiddle.net/DJdfZ/3/