-
-
Save bjesus/267d827d09507f3d7110 to your computer and use it in GitHub Desktop.
Keep inputs with the same name in sync (jQuery)
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
$("input[name]").bind("keyup paste", function() { | |
elm = $(this); | |
elm_name = elm.attr('name'); | |
$('input[name='+elm_name+']').val( elm.val() ) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment