Counting Checked Radio Buttons with jQuery

I have pages with varying numbers of radio buttons. These buttons have two different classes, `yes`, and `no`. As the user goes down the page, I need to figure out how many of each class they have selected, and display it in a `

` at the bottom of the page. I'm having problems preventing 1 getting added to the variable when a user clicks on a radio button more than once. Here's a JS fiddle with my code: http://jsfiddle.net/AnWU3/3/ It's not working at all for some reason, and I don't see why.

以上就是Counting Checked Radio Buttons with jQuery的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏