Copy Text Input From One Field To Another


/ Published in: jQuery
Save to your folder(s)

More info on SO: http://stackoverflow.com/questions/4061489/jquery-duplicate-field-input-text-in-real-time


Copy this code and paste it in your HTML
  1. var $mail = $("#mail");
  2.  
  3. $("#email").keyup(function() {
  4. $mail.val(this.value);
  5. });
  6. $("#email").blur(function() {
  7. $mail.val(this.value);
  8. });

URL: http://jsfiddle.net/DJdfZ/3/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.