I'm using metismenu for my project. Is there a way to add a sub menu to it using javascript?
I'm using metismenu for my project. Is there a way to add a sub menu to it using javascript?
You can find the whole snippet if you have gone through the documentation before asking here. Documentation link . Snippet for you by Metismenu itself
<ul id="metismenu">
<li class="mm-active">
<a class="has-arrow" href="#" aria-expanded="true">Menu 1</a>
<ul>
... //Add your sub menu list here
</ul>
</li>
<li>
<a class="has-arrow" href="#" aria-expanded="false">Menu 2</a>
<ul>
...
</ul>
</li>
</ul>