Created
September 8, 2014 10:12
-
-
Save olimortimer/2eb5b14ecda5734e76b4 to your computer and use it in GitHub Desktop.
JS: Serialize disabled form elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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