Created
September 30, 2011 10:04
-
-
Save listertech/1253331 to your computer and use it in GitHub Desktop.
serialize visible form elements in jquery
This file contains hidden or 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
y = $('#form_id').find('select').filter(':visible'); | |
x = $('#form_id').find('input').filter(':visible').filter("input[type!='button']").filter("input[type!='submit']") | |
var z = jQuery.merge(x,y); | |
z.serialize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment