Skip to content

Instantly share code, notes, and snippets.

View listertech's full-sized avatar

Mukund listertech

View GitHub Profile
@listertech
listertech / visible_form_elements.js
Created September 30, 2011 10:04
serialize visible form elements in jquery
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();