sasker
sasker

Reputation: 2321

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 after 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.

Upvotes: 2

Views: 454

Answers (1)

Garrett Vlieger
Garrett Vlieger

Reputation: 9494

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

Upvotes: 2

Related Questions