ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

how to keep jquery slidedown open?

November 01, 2011 3:42am

Subscribe [1]
  • #1 / Nov 01, 2011 3:42am

    77120

    15 posts

    Hello everyone.

    im trying to my a accordion menu with jquery which work but it has to stay open on the submenu’s
    i cant seem to get it to work, maybe anyone can help me out

    HTML:

    {exp:channel:entries channel="producten" sort="asc" dynamic="no"}
    <DIV class="productmenuknop" id="{url_title}">
    {<a href="http://{title_permalink=">{title}</a>
    </DIV><!--end productmenuknop div-->
    {subgroup}
    <DIV class="productmenuknophide" id="{url_title}">
    <a href="http://{title_permalink=">• {title}</a>
    </DIV><!--end productmenuknop div-->
    {/subgroup}
    {/exp:channel:entries}

    the subgroup is the playa plugin

    and the jquery:

    $('#doosletters_verlicht').click(function() {
    if ($('.productmenuknophide').is(':hidden')) {
      $('.productmenuknophide').stop(true, true).slideDown('slow');
       } 
     
     else {
     $(".productmenuknophide").stop(true, true).slideUp("slow");
     
      }
    
    });

    obviously it closes when clicking on a link, but i got no idea how to keep it open

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases