How do I access values created by serializeArray in JQuery?

前端 未结 8 637
眼角桃花
眼角桃花 2021-02-02 09:33

I have this HTML:

And I create an object array from it lik

8条回答
  •  臣服心动
    2021-02-02 10:01

    Adding this anyway to help others in future. Good way to quickly inspect all values.

    var formdata = $( "#myform" ).serializeArray();
    var formdata = JSON.stringify(formdata);
    alert (formdata);
    

提交回复
热议问题