Skip to content

Instantly share code, notes, and snippets.

@daneharrigan
Created July 12, 2010 02:08
Show Gist options
  • Save daneharrigan/472041 to your computer and use it in GitHub Desktop.
Save daneharrigan/472041 to your computer and use it in GitHub Desktop.
// select all input elements excluding hidden fields
$('input:not(input[type=hidden])')
// or...
// select input by name, but still exclude hidden fields
$('input[name=model_field]:not(input[type=hidden])')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment