Hello i have a side bar that i wont to close when someone clicks outside of it.
Im brand new to jquery.
Here is what i currently have. Right now you click on an X which is a div called .exit to close the element.
$('.icon-hamburger').click(function() {
$('.hamburger').show();
});
$('.exit').click(function() {
$('.hamburger').hide();
});
How would a jquery master do this?