Skip to content

Instantly share code, notes, and snippets.

@olimortimer
Created September 8, 2014 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olimortimer/2eb5b14ecda5734e76b4 to your computer and use it in GitHub Desktop.
Save olimortimer/2eb5b14ecda5734e76b4 to your computer and use it in GitHub Desktop.
JS: Serialize disabled form elements
// Serialize all our form elements with a value, including disabled
$.fn.serializeAllForm = function () {
return $.param(
$.makeArray(
$(':input[value!=""]', this)
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment