Karl,
Thanks, I am going to try to put together a real life example and test out
what is faster.  I will try to have something by end of week.

Thanks again.

On 6/13/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:

Hi Benjamin,
In this case, these are faster ...
$('div.bam')
$('span.bam')

than this ...
$('.bam')

What I don't know is whether $('div.bam, span.bam') is faster than
$('.bam'). I suspect that it might depend on the what the DOM looks like on
a given page.


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jun 13, 2007, at 8:15 AM, Benjamin Sterling wrote:

I hear what everyone is saying about IDs, but lets flip the switch here
and what if we have:

<div class="bam">
<span class="bam">

This situation is a valid situation, one I normally am in (actually in a
link situation).  So, what is the fastest selector to retrieve on or
another.



--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com





--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to