On Aug 10, 2007, at 11:25 AM, Klaus Hartl wrote:
Karl Swedberg wrote:
Using $('#myId'), jQuery will only select the first element in the
DOM with that id, since there is only supposed to be one.
I'd like to note, that it's not even jQuery that is responsible for
this behaviour, it's the underlying DOM method
document.getElementsById implementation that only returns the first
match for a given id as it is never supposed to return more than
one element.
Absolutely. Good point, Klaus.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com