Jquery start search in self
<p>I currently use the folowing:</p>

<pre><code>var element = $('#Adiv').find('[name='thename']');
</code></pre>

<p>this searches in Adiv for an element with the name 'thename'.
But Adiv could also have the name 'thename' so it should first look at it's own name.
How do i do this? I tried andSelf() but that just includes the entire element even if it doesn't have the right name.</p>
