Last active
October 4, 2018 14:54
-
-
Save dermatologist/26062e3c92639eb4d12c7b494c0ba0e1 to your computer and use it in GitHub Desktop.
Add name next to all input and select fields
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
var $input_fields = $("input, select"); | |
$.each($input_fields, function() { | |
$(this).after('<span style="color:red;">' + $(this).prop("name") + '</span>'); | |
$(this).show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment