jQuery deserialize form

后端 未结 11 775
日久生厌
日久生厌 2020-12-13 09:21

I am using jQuery Serialize to serialize my form elements and would like to deserialize them back. Unfortunately can\'t find any working jQuery deserializer, any suggestions

11条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 09:49

    I'm not now answering your question but my guess is that you want to serialize it and send back to server and then use the serialized data which is why you have to deserialize it?

    If that's the case you should consider using .serializeArray(). You can send it as POST data in ajax, and then access later as well because you will have object.

提交回复
热议问题