how to find the anchor tag within the anchor tag?
<pre><code>&lt;ul&gt;
 &lt;li class="topnav"&gt;FirstSet
   &lt;ul&gt;
     &lt;li&gt;&lt;a href='1.aspx'/&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href='2.aspx'/&gt;&lt;/li&gt;
   &lt;/ul&gt;
 &lt;/li&gt;
 &lt;li class="topnav"&gt;SecondSet
   &lt;ul&gt;
     &lt;li&gt;&lt;a href='3.aspx'/&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href='4.aspx'/&gt;&lt;/li&gt;
   &lt;/ul&gt;
 &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>this is my menu control, when i am on the 1.aspx/2.aspx i need to hightlight the menu <strong>FirstSet</strong></p>

<pre><code>$("#nav").find("a[href='" + window.location.pathname + "']").each(function() {
         $(this).addClass("activeTab");
});
</code></pre>

<p>using the abouve jquery code, i tried to add the class dynamically. 
Please let me know if i am missing somethignn in the above jquery.</p>
