javascript or jquery to change list class into andother class name after hovering -


i wan't use jquery or javascript change <li class="cat"> dynamicly when hovering on cat list <li class="cat show"> using joomla take noconflict function consideration

<ul>    <li class="cat"> <a class="rt" href="" aria-haspopup="true">motors</a>     <div class="sub" role="menu">        <ul class="col">          <li class="title">top categories</li>          <li class="icn"> <a href="" aria-haspopup="false">cars</a></li>         <li class="icn"> <a href="" aria-haspopup="false">motorcycles</a></li>          <li class="icn"> <a href="" aria-haspopup="false">parts</a></li>      </ul>  </ul>  

please me out :)

ok first of should @ least try find on own, second try this:

jquery(".cat").hover(function(){     jquery(this).addclass('show').siblings().removeclass('show'); }); 

http://jsfiddle.net/wjmbs/


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -