Archive

Posts Tagged ‘IE’

‘Object Doesn’t Support this Method’ when using jQuery selector in IE

July 7th, 2009 Rev No comments

Fought with this one for a while. I was trying to use a selector to grab all check boxes in a given DIV. So I used this:

jQuery(‘#ResultsList :checkbox’).each(…

So, of course this works in EVERY browser, save for IE. After hit and missing for a while I found that being more specific fixed the issue.  Like so:

jQuery(‘#ResultsList input:checkbox’).each(…

In the docs they suggest using input just to narrow down the options and speed up the call.  Clearly it’s not an option in IE.

Took me a while to find this since it worked earlier when called .live on it.  Oh well.  Problems solved.

Hopefully it saves you some hair.

Tags: , ,