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: 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: ... 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 答疑

评论 抢沙发

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

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