jQuery click anywhere in the page except on 1 div
You can apply click on body of document and cancel click processing if the click event is generated by div with id menu_content, This will bind event to single element and saving binding of click with every element except menu_content $(‘body’).click(function(evt){ if(evt.target.id == “menu_content”) return; //For descendants of menu_content being clicked, remove this check if … Read more