Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anestan/2ffa43972fa37187d1ac to your computer and use it in GitHub Desktop.
Save anestan/2ffa43972fa37187d1ac to your computer and use it in GitHub Desktop.
// auto make id with name field
$('form,input,textarea,select').each(function(index) {
$(this).attr("id",$(this).attr("name"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment