<div id="bam" />
<span id="bam" />
What if you need to retrieve the span tag? If it's checking #bam first,
won't it only find the <div /> element?
But that is my thinking of why $('span#bam') would be faster then just
$('bam').
(And yes, I know the HTML spec says that IDs should be unique, but
occasionally you're dealing w/dynamically generated server content that's
out of your control.)
In that case, when I generate dynamically I append the id with the unique
id of the record.
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com