Jump to content

Block Category current


Recommended Posts

Hi.

 

I have Block Category in my sidebar (this is code):

<ul>
<li><span class="grower CLOSE"> </span><h3><a href="http://achdzieciaki.pl/figurki-postacie-24" title="Figurki, postacie"> <span> Figurki, postacie </span> </a></h3>
<ul class="sub_tree" style="display: block;">
<li><h3><a href="http://achdzieciaki.pl/angry-birds-141" title="Angry Birds"> <span> Angry Birds </span> </a></h3></li>
<li><h3><a href="http://achdzieciaki.pl/gormiti-53" title="Gormiti"> <span> Gormiti </span> </a></h3></li>
<li class="last"><h3><a href="http://achdzieciaki.pl/pozostale-66" title="Pozostałe"> <span> Pozostałe </span> </a></h3></li>
</ul>
</li>
</ul>

How can I add class current to li element when I click on "Figurki, postacie" or change ul class "display: none;" to "display: block;" - I want show subcategories without clicks on span.grower

 

 

THX

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...