In Jquery how would i make it so that if i had a div, with different elements inside of it, a select, a search input, etc, that when i click outside of the div, on the page,
Check this out Demo is here
$('#menuBtn').click(function(e) { e.stopPropagation(); $('.navMenuSecWrapper').fadeToggle(); return false; }); $(document).click(function() { $('.navMenuSecWrapper').fadeOut(); });