adding a class in the navigation menu
<p>Considering the case, that I have the following menu:</p>

<pre><code>&lt;ul&gt;
&lt;li&gt;&lt;a href="index.php"&gt;Index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="about.php"&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="test.php"&gt;Test&lt;/a&gt;&lt;li&gt;
&lt;/ul
</code></pre>

<p>And the menu is located in header.php . For each page (Index, About, Test), I have index.php, about.php and test.php, and all these files include the header.php ! </p>

<p>What I need is adding a class to the li when we are on different pages. So if we are on the about.php, the class should be added on the second li.</p>

<p>Is there any way to do with jQuery, or what are the ways to handle this problem?</p>
