开发者

How can i make 'individual' appended elements with onclick

开发者 https://www.devze.com 2023-01-28 06:56 出处:网络
I keep getting stuck on this one little thing. I append a checkbox and a remove button with an append button.

I keep getting stuck on this one little thing. I append a checkbox and a remove button with an append button.

So every time the append button is clicked i get;

Checkbox and a remove button. T开发者_如何学编程he remove button has to remove the checkbox. My problem;

If i append a bunch of pairs, only the first pair seems to work :O !!

Thank you in advance


Make sure you are changing the name/id on the checkbox or you are using an array, for example

Checkbox 1 is named checkbox[1] Checkbox 2 is named checkbox[2]

If they have the same name, they will only come through as 1 item in the POST/GET!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号