I have a simple Tab Navigation with jquery. Whenever a new tab is clicked, the script adds to the current navigation list element the class "currentNav" and deletes it from the previous selected list element. Now I want to change the background of the mother ul whenever the second list element gets the class "currentNav". The start default is that the first list element has this class. My problem is, I don't know how I can make jquery react on that change..
Here is the html of the navigation
<ul id="AuktionenNav">
<li><a class="tabSelect one currentNav" href="#Tab0" rel="0">Auktionen starten</a></li>
<li><a class="tabSelect two" href="#Tab1" rel="1">Eingestellte Auktionen</a></li>
</ul>
And here my jquery so far
if($("ul#AuktionenNav li a.two").hasClass("currentNav")) {
$("ul#AuktionenNav").css("background-image", "url(../system/css/images/eingestellte_Auktionen.png)")
}
I appreciate any help! Thx!
toggleClasscode, can we see it?