Return to Snippet

Revision: 35017
at November 1, 2010 06:47 by logic-unit


Initial Code
var $mail = $("#mail");

$("#email").keyup(function() {
    $mail.val(this.value);
});
$("#email").blur(function() {
    $mail.val(this.value);
});

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

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

Initial Title
Copy Text Input From One Field To Another

Initial Tags
javascript, html, jquery

Initial Language
jQuery