jquery <input type="text" name="quantity[1]" /> get by name
<p>How can I do something like this:</p>

<p>Given:</p>

<pre><code>&lt;input type="text" name="quantity[1]" /&gt;

if ($("#item_kit_items").find('input[name=quantity[1]').length ==1)
{
    alert('exists');
}
</code></pre>

<p>(The above doesn't work)</p>
