How to add a class active in a menu where url has the same pass
<p>I have the following menu.</p>

<pre><code>&lt;ul id="nav" class="grid_16"&gt;
    &lt;li&gt;&lt;a href="#"&gt;FORSIDE&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;MOBIL&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;PC OG SERVERE&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;TJENESTER&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;DIVERSE&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;OM OSS&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;KONTAKT&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;NETTBUTIKK&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;
</code></pre>

<p>A url path will have under score _ where there is a space.
For example PC OG SERVERE will be </p>

<pre><code> http://www.mywebsite.no/PC_OG_SERVERE.asp
</code></pre>

<p>DIVERSE will be </p>

<pre><code>http://www.mywebsite.no/DIVERSE.asp
</code></pre>

<p>I'd like to add class="active" in a list with jquery.
For example when you are in <a href="http://www.mywebsite.no/OM_OSS.asp" rel="nofollow">http://www.mywebsite.no/OM_OSS.asp</a></p>

<pre><code> .....
 .....
 &lt;li class="active"&gt;&lt;a href="#"&gt;OM OSS&lt;/a&gt;&lt;/li&gt;
 ....
</code></pre>

<p>How can I do it?</p>

<p>Thanks in advance.</p>
