please help - addClass + removeClass
Hello everybody..
first Im sorry for my english..
Im programming now jquery..
I want by click to add hi and remove the class lo.
and when I click another div the class hi must adding and class lo must removing, here but the
first clicked div who had class hi must removed and the old class lo must added. how can I do that? please help
this is the code:
<ul>
<li>
<div id="id1">
<a class="lo" href="#"></a>
</div>
</li>
<li>
<div id="id2">
<a class="lo" href="#"></a>
</div>
</li>
so if click in id1 the class lo must removed and class hi must added
and the if I click id2 the class lo must removed and class hi must added and the class hi in id1 must removed and class lo must added too.