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