Bug Tracker

Ticket #8585 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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

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


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.

Change History

comment:1 Changed 4 years ago by ajpiano

  • Status changed from new to closed
  • Resolution set to invalid

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

Note: See TracTickets for help on using tickets.