Skip to content

Instantly share code, notes, and snippets.

@dermatologist dermatologist/oscar.js
Last active Oct 4, 2018

Embed
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>');
$(this).show();
});
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.