0 works

Open Mobile Sidebar on button click


dashboard+ Project

Posted by @mishka #html #javascript

Code snippet:

<button id="open-sesame">Open</button>

                <script>
                    var openSesame = document.getElementById('open-sesame');
                    openSesame.addEventListener("click", function(){
                        $('.sidenav').sidenav('open');
                    });
                </script>
content_copyCopy to Clipboard

>> Browse more code snippets

more_vert