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,
You can bind a click handler on $(document) like
$(document)
$(document).click(function(){ $(this).unbind('click'); $('#menu').fadeOut(); }