Skip to content

Instantly share code, notes, and snippets.

@dshaw002
Created June 19, 2014 21:54
Show Gist options
  • Save dshaw002/3d1fbf5cf3459f88a2d1 to your computer and use it in GitHub Desktop.
Save dshaw002/3d1fbf5cf3459f88a2d1 to your computer and use it in GitHub Desktop.
4Justin
$('html').click(function(){
// Hide Menus if visible
$('#yourMenuName').hide();
});
$('html').on('submit', '#form2', function(e){
e.preventDefault();
$('#yourOverlayName').show();
});
$('#yourMenuName').click(function(e){
e.stopPropagation();
})
<div id="yourOverlayName">
<div id="yourMenuName"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment