how do I know which id-scope I'm in?
<p>I have some divs with similar content and links, images etc request extended jQuery-functions.</p>

<p>The divs have unique id's but their content have similar fields and structure.</p>

<p>For example, the HTML is:</p>

<pre class="lang-html prettyprint-override"><code> &lt;div id="bar1"&gt;
   &lt;some xhtml&gt;&lt;input type="textbox" class="searchTxt" /&gt;
   &lt;some xhtml&gt;&lt;img class="notify" src="blank.gif" /&gt;
 &lt;/div&gt;
 &lt;div id="bar2"&gt;
   &lt;some xhtml&gt;&lt;input type="textbox" class="searchTxt" /&gt;
   &lt;some xhtml&gt;&lt;img class="notify" src="blank.gif" /&gt;

 ...
</code></pre>

<p>And the jQuery:</p>

<pre><code>$('.searchTxt').click(function(obj) {
    //now here I want to know which searchTxt that was clicked,
    //so I can change the img-source..
    //without parent().parent() that may fail since div-content may vary.
});
</code></pre>

<p>EDIT:<br>
It's partly a poor example, since the jQuery doesn't modify anyting, and this is always available..<br>
Imagine an image in both divs that should be hidden by the click-function.<br>
Example updated.</p>

<p>What's the right path here?</p>
