Skip to main content

Bug Tracker

Side navigation

#8585 closed bug (invalid)

Opened March 22, 2011 11:42AM UTC

Closed March 22, 2011 03:12PM UTC

$(#id #id) selector doesn't work on IE7

Reported by: narmirzaei@gmail.com Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

I Used

$("#propContent #imgExpander").each(...);

to select all the #imgExpander from #propContent but it doesn't work on IE7 (and IE8 on Windows XP)

Instead, I changed the selector to:

$("#propContent img[id=imgExpander]").each(...);

and It works fine now.

Attachments (0)
Change History (1)

Changed March 22, 2011 03:12PM UTC by ajpiano comment:1

resolution: → invalid
status: newclosed

"to select all the #imgExpander"

ID's are required to be unique in the DOM. If you have more than element in your DOM with the same ID, jQuery's $("#foo") is not going to work right.