javascript - my menu overflows the space -


i have tried make menu collapses earlier expanded chioces cant make work.

var currentid;  $(document).ready(function () {     $(":range").rangeinput({         progress: true     });      /* slide toogle */     $("ul.expmenu li > div.header").click(function () {         var arrow = $(this).find("span.arrow");          if (arrow.hasclass("up")) {             arrow.removeclass("up");             arrow.addclass("down");         } else if (arrow.hasclass("down")) {             arrow.removeclass("down");             arrow.addclass("up");         }          $('#' + currentid).parent().find("ul.menu").slidetoggle();         $(this).parent().find("ul.menu").slidetoggle();         currentid = $(this).attr('id');     }); }); 

you can find homepage @ adress: http://admin.dq.se/kramers/nyamenyer.html

so if press "bil" want "bil" expand .. , afterwards if press "mc" want bil collapse , mc expand. help!

slide before sliding down

$("ul.expmenu li > div.header").click(function () {   $(this).parent().siblings().find('ul.menu').slideup();  $(this).parent().siblings().find('span.arrow').removeclass('up').addclass('down');  ....  }); 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -