开发者

Object doesn't suport this property or method in IE8 when checking if checkbox is checked after setting attr('checked');

开发者 https://www.devze.com 2023-04-05 16:09 出处:网络
This is behavior is kind of strange. In IE8 when I use $(\'something\').is(\':checked\') to check if a checkbox is checked a开发者_StackOverflow中文版fter setting it using $(\'something\').attr(\'ch

This is behavior is kind of strange.

In IE8 when I use $('something').is(':checked') to check if a checkbox is checked a开发者_StackOverflow中文版fter setting it using $('something').attr('checked', true). I get an error when I run the script a second time.

I created a jsfiddle and the same issue occurs there.

After the following page loads, click run again. I get Object doesn't support this property or method in IE8

http://jsfiddle.net/Dxvmg/6/

Any ideas?

I am using jquery 1.6.2.


I think you've found a bug in jsfiddle. Seemed to work fine in a stand-alone web page.

0

精彩评论

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

关注公众号