I'm using iconfonts in a drop-down menu, where the link looks like this:
<li class="abre-dropdown"><a href="javascript:void(0)"><label style="float:left;" class="icon-location"></label>Nossa casa<label class="icon-down-dir"></label></a></li>
Is it possible, when the menu is active (toggle effect), to change its class from icon-down-dir
to any other, such as icon-up-dir
?
jquery script to open / close the menu:
var $j = jQuery.noConflict();
$j(".abre-dropdown").click(function(){
$j(this).children("ul").slideToggle();
})
$j("ul").click(function(p){
p.stopPropagation();
})