I am trying to work on achieving some-thing like this as shown in the image taken from IP-Board's website. ip image
My code is like the following:-
<ul class="navmenu">
<li>//1st drop down box</li>
<li>// 2nd drop down box</li>
Now I want the li items background to change to white when a user clicks on it. I know this can be done via Jquery but I am not very well versed with it. Hope any one of you can help me.
I tried this guide but did not work How can I highlight a selected list item with jquery?
Also please keep in mind that both the li elements contain jquery drop-downbox.
UPDATE I want the Jquery so that if I click it once more the active class should be removed.