The following snippet runs through a bunch of form elements, grabs the name and values and alerts them. If there are 3 inputs, I get three alerts. I need to combine these all so I can submit them via .post but not sure how to do that.
I can't use .serializeArray as I don't have a form tag I can use. Backend is .net and there can be up to 20 different forms on the page so I can't submit the whole thing.
Can anyone point me in the right direction?
$('.savefunctions a').live('click', function() {
var fields = $(this).parents('.ui-accordion-content').find(':input');
$.each(fields, function(i, field) {
alert(field.name+': "'+field.value+'", ');
});
});