Strange jQuery("checkbox").click().is(":checked") behavior

Can anyone explain why `$(this).is(":checked")` gives the opposite result when the checkbox is clicked with `$("#test").click()` than when clicked manually or with `document.getElementById("test").click()` ?? EDIT Requested behavior here - thanks: http://jsfiddle.net/ub8Zk/4/ EDIT 2 This has been driving me nuts, but I finally realize -- in version 1.5.2 of jQuery the event handler for the `change` event is fired when `click()` method is called (like native js)!! Not so in previous versions. Look here: http://dl.dropbox.com/u/6996564/jquery_click_test/test-1.4.4.htm ... test-1.5.1.htm ... test-1.5.2.htm Can someone help me report this bug??

以上就是Strange jQuery("checkbox").click().is(":checked") behavior的详细内容,更多请关注web前端其它相关文章!

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

评论 抢沙发

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

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

联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏