Serialize form not working in jQuery

后端 未结 7 1468
攒了一身酷
攒了一身酷 2020-12-24 00:06

Can you please take a look and help me realize where am I going wrong with this? Here is the jsfiddle link: http://jsfiddle.net/Hitman666/QcEkj/1/ but also here is that code

7条回答
  •  猫巷女王i
    2020-12-24 01:05

    I think the problem is that you're trying to select form like

    $("form");
    

    But this is equivalent to

    getElementsByTagName("form");
    

    This returns an array of objects.
    So, instead you can use the #id selector, or use the index to access the form. Hope this helps.

提交回复
热议问题