i'm trying to make a website with some content loaded in the div #main
, using ajax, but i do not manage to define a current class for the selected item in the menu.
<nav id="menu">
<ul>
<li>
<a href="pages/qui.php"
rel="address:/Qui"
title="Qui suis-je?"
class="qui ajax">
Qui suis-je?
</a>
</li>
<li>
<a href="pages/portfolio.php"
rel="address:/portfolio"
title="Portfolio"
class="portfolio ajax">
Portfolio
</a>
</li>
<li>
<a href="pages/contact.php"
rel="address:/contact"
title="Contact"
class="contact ajax">
Contact
</a>
</li>
</ul>
</nav>
I'm using the asual jquery plugin to enable the user back button (maybe there is a way to use this plugin to define the current element clicked in the menu, in jquery)
So...i'm not good at all in jquery so please if someone can help, it will be great.