ajax - serializing a form jquery -
I have to serialize my form data and send it through AJAX, I have used the serial array Which gives me the approval postcard. The code is as follows:
var fields = $ ('# myform: input'). SerializeArray (); JQuery.each (field, function (i, field) {values [field.name] = field.value}); I want to pass {code> values [field.id] = field.value
I want to use serializeArray () only the standard W3C for successful regulation Uses the rules to determine which element should be included in it.
I think this is a better way to use jQuery form plugin:
I have used successfully in many projects.
Comments
Post a Comment