Well I know how to identify a click on an element. I do this:
// Fecha Sidenav
$("#Close_Sidenav").click(function() {
$("#mySidenav").hide();
});
But I need $("#mySidenav").hide()
to run when I click on the Close_Sidenav
element and when I click outside the mySidenav
element.
How do I do this?
For more information I'm trying to make this menu close when I click outside it. Menu