jquery integrate form parameter in one object
Posted
by
jesse
on Stack Overflow
See other posts from Stack Overflow
or by jesse
Published on 2013-10-28T03:40:56Z
Indexed on
2013/10/28
3:54 UTC
Read the original article
Hit count: 147
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.
© Stack Overflow or respective owner