Hi,
I need to serialize my form data and send it via ajax I have used serializeArray() which gives me the approriate postdata. The code is as follows :
var fields = $('#myform :input').serializeArray();
jQuery.each(fields, function(i, field)
{
values[field.name] = field.value
});
I want to pass values[field.id] = field.value
I want to use serializeArray() only becoz
it uses the standard W3C rules for successful controls
to determine which elements it should include .