How do I access values created by serializeArray in JQuery?

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

I have this HTML:

And I create an object array from it lik

8条回答
  •  星月不相逢
    2021-02-02 10:18

    Alerting serializeArray of inputs in myDiv (note: the :input selector will include select and textarea tags as well!):

    //alert(fData.length) // how many inputs got picked up 
    var fData=$("#myDiv :input").serializeArray();
    var msg=""; 
    for(var i=0;i

提交回复
热议问题