Copy Input Fields
Copy Input Fields
I'm trying to copy something from one input field to another input field. I don't want to wait until the user clicks the button, should be instant.
This script works but it's always one letter behind. Any ideas?
Thanks,
Joe
-
$('#locationInput').keypress(function() {
loc = $('#locationInput').val();
$('#locationDisplay').val(loc);
});