jquery track by ID or name?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6460644/in-jquery-is-selecting-by-class-or-id-faster-than-selecting-by-some-other-attri">In jQuery, is selecting by class or id faster than selecting by some other attribute?</a>  </p>
</blockquote>



<p>I am very much new to jquery and a bit confused with so many options after searching different forums. Can you please advice which one is faster and most optimized way to select an element in jquery?</p>

<p>1) by id [normally I use this one]</p>

<pre><code>$("#thisID")
</code></pre>

<p>2) by name</p>

<pre><code>$("input[name=thisName]")
</code></pre>

<p>3) by type followed by id [Not sure whether this is right syntax or not]</p>

<pre><code>$("select #thisID)
</code></pre>

<p>Thanks,</p>
