Get the values of 2 HTML input tags having the same name using PHP

后端 未结 4 1661
旧时难觅i
旧时难觅i 2021-01-21 00:41

Suppose I have the following table:

4条回答
  •  [愿得一人]
    2021-01-21 01:12

    Well, I understand that there are dynamic rows generating. But it doesn't mean that you can't give the text boxes in each rows different names. You can definitely make it different. I saw your code in jsfiddle. While appending, you just count number of rows in the table and accordingly you, you can +1 to that and store it in a variable. And concatenate this variable in the name of the text box. So, that everytime, it will click add unit, text box in the row will have different name. Thats the correct solution.

提交回复
热议问题