jquery integrate form parameter in one object
- by jesse
There are many forms in my page. I want to merge them in one object and submit them in one object. But I find serializeArray() or serialize() do not match my request, the serializeArray function will generate a array object and serialize is used by get model, it is not an object.
is there a jquery or local function can merge them in one object.
I have one solution but it is not perfect, loop the array object generated by serializeArray, use $.extend to merge them in one object. is there a better method?
kindly help, thanks.