How do i select an element with certain ID and a certain rel
<p>I looked at selectors and has attribute seems to be the closes choice however i cant seem to make it work.</p>

<p>what i am trying to do i select an element with certain id that also has a certain rel value..</p>

<p>for example:</p>

<pre><code>&lt;input value="Needthisvalue" rel="15" value=wahtever" id="pickthisID" type="hidden"&gt;
</code></pre>

<p>to find out that input with that id and that rel. what I've tried so far is :</p>

<p>TabID contain the 15.</p>

<pre><code>$('#pickthisID[rel="'+TabID+'"]').val();
</code></pre>

<p>Thanks in advanced.</p>
