I have a form which has elements in a couple of divs.
Based on a drop down, some of these divs might be hidden and some will be displayed.
i want to Serialize the form with just the element which are visible and not the hidden divs.
Is there any way I can filter out those hidden divs.
tried this but doesn't work
$('<tr />').data($(this).find('form:not(.child:hidden)').serializeObject());
serializeObject is a plugin which converts serializeArray into an Object.