Posted By

logic-unit on 11/01/10


Tagged

javascript html jquery


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

dekehooper
Tyster
johnw


Copy Text Input From One Field To Another


 / Published in: jQuery
 

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

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

  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. });

Report this snippet  

You need to login to post a comment.