I have this plugin that I downloaded from http://www.berriart.com/sidr/ once I click on a button it shows slides the menu and when I want to close it I can only close it by clicking back on the same button. Now I want to add a click anywhere in the body to move back the menu. could anyone please help me fix this?
Here is my html:
<div id="sidr">
<!-- <button class="close-side-menu"><i class="icon-close"></i></button> -->
<ul>
<li>
</li>
</ul>
</div>
<button type="button" class="menu-icon open-side-menu">
<a id="simple-menu" href="#sidr">
</a>
</button>
<script>
$(document).ready(function() {
$('#simple-menu').sidr();
});
</script>