阅读背景:

jQuery - 通过appendTo()添加的Checkbox似乎无法正确处理click事件

来源:互联网 

I have a button which on click adds checkbox and text fields. Also I'm counting the checked boxes - which doesn't seem to be working. So I added 2 more "static" ones and it works. The strange thing is the one added through appendTo() are only being counted after I click on the "static" boxes. What I mean, for example Click on appendTo() checkbox - 0 counted Click a "static" one - It shows two, which is correct.I have a button which on click adds checkbox an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: