Skip to content

Instantly share code, notes, and snippets.

@andyj
Created July 11, 2012 16:04
Show Gist options
  • Save andyj/3091432 to your computer and use it in GitHub Desktop.
Save andyj/3091432 to your computer and use it in GitHub Desktop.
Disabling a whole form
// add the class "disabled" to the form
$("form.disabled").find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").prop("disabled",true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment