jQuery equivalent to "getElementsByName"
<p>What is the correct jquery syntax for a <code>getElementsByName</code> call?</p>

<p>Here is my javascript code:</p>

<pre><code>var test = document.getElementsByName(tableName)[0];
</code></pre>

<p>using this is returning a different value:</p>

<pre><code>var test = $("[name=tableName]");
</code></pre>

<p>Thanks in advance</p>
