Javascript dropdown menu stay open onced clicked
<p>I'm new to javascript and I have found a script that lets me create a dropdown menu onclick, however I would like the menu to stay open when clicking on the other list items from the dropdown menu. Right now each time I click on a different item from my menu the menu collapse. Not to sure what codes too share so I've shared my javascript. Any help is appreciated Thanks!!</p>

<pre><code>ddaccordion.init({
    headerclass: "submenuheader", 
    contentclass: "submenu", 
    revealtype: "click", 
    collapseprev: true, 
    defaultexpanded: [], 
    onemustopen: false, 
    animatedefault: false,
    persiststate: true, 
    toggleclass: ["", ""], 
    animatespeed: "fast",   
})
</code></pre>
