How to get an Array with jQuery, multiple <input> with the same name

前端 未结 9 666
既然无缘
既然无缘 2020-11-28 19:02

I have a form where users can add input fields with jQuery.


After submitting the

9条回答
  •  一向
    一向 (楼主)
    2020-11-28 19:27

    if you want selector get the same id, use:

    $("[id=task]:eq(0)").val();
    $("[id=task]:eq(1)").val();
    etc...
    

提交回复
热议问题