I\'m wanting to have one text field autopopulate with whatever the other text field has being typed into it.
How do I go about this?
Thank you! Hudson
Dustin Diaz has written a wonderful mirror for Twitter Widget using jQuery
$.fn.mirror = function (selector) {
return this.each(function () {
var $this = $(this);
var $selector = $(selector);
$this.bind('keyup', function () {
$selector.val(($this.val()));
});
});
};
Use it like
$('#source_text_id').mirror('#destination_text_id');