Skip to content

Instantly share code, notes, and snippets.

@guilhermealveslopes
Created February 14, 2017 11:56
Show Gist options
  • Save guilhermealveslopes/270fc3ccbf64f21fa75cfe23651f93e2 to your computer and use it in GitHub Desktop.
Save guilhermealveslopes/270fc3ccbf64f21fa75cfe23651f93e2 to your computer and use it in GitHub Desktop.
JS Field repeat
$(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