Skip to content

Instantly share code, notes, and snippets.



Last active Oct 4, 2018
What would you like to do?
Add name next to all input and select fields
var $input_fields = $("input, select");
$.each($input_fields, function() {
$(this).after('<span style="color:red;">' + $(this).prop("name") + '</span>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.