Object doesn't suport this property or method in IE8 when checking if checkbox is checked after setting attr('checked');
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.
精彩评论