JQuery - getting the parent div from a nested element ID
<p>i am trying to access an element by using an ID of one of it's nested elements, using JQuery. For example : I need to find 'myDiv' from its nested 'searchBox' element. The issue is that the hierarchy changes and the searchBox will not always be in the same nested position. so i essentially need something that says: Give me the DIV that contains the element with the ID of 'searchBox'.(see below) Any suggestions?
Thanks!</p>

<pre><code>&lt;div id="myDiv" class="CommonGridView_ListBoxPopupPanel"&gt; 
Some text here : 
&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;input class="tboxw" type="text" id="btnFind"/&gt;&lt;/td&gt;  
 &lt;td&gt;some content&lt;/td&gt; &lt;/tr&gt; 
 &lt;tr&gt; &lt;td&gt;&lt;textarea id="searchBox"&gt;text area content&lt;/textarea&gt; &lt;/td&gt; 
 &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
</code></pre>
