Created
February 14, 2017 11:56
-
-
Save guilhermealveslopes/270fc3ccbf64f21fa75cfe23651f93e2 to your computer and use it in GitHub Desktop.
JS Field repeat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('#primeiro').change(function() { | |
$('#segundo').val($('#primeiro').val()); | |
}); | |
}); | |
/** Change text from $primeiro to $segundo after type **/ | |
$(document).ready(function(){ | |
$('#primeiro').keyup(function() { | |
$('#segundo').val($('#primeiro').val()); | |
}); | |
}); | |
/** Change text from $primeiro to $segundo when is typed **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment