Dragan,  I think what Christof is getting at is this: on any given page,
#myid could be uniquely assigned to a div or a paragraph or a span or an
image or any other element. So, page 1 could have <div id="myid"></div> and
page 2 could have <p id="myid"></p>

If the same script is being included on multiple pages, it might be
necessary to specify that an event take place only if #myid is attached to,
for example, the div. In this scenario, div#myid is not redundant.



But that is bad  practice. I'll never use same id for different tag in app.
Ah, you never know...




--
Dragan Krstić krdr
http://krdr.ebloggy.com/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to