Skip to content

Instantly share code, notes, and snippets.

@kouphax
Created October 15, 2010 19:50
Show Gist options
  • Save kouphax/628829 to your computer and use it in GitHub Desktop.
Save kouphax/628829 to your computer and use it in GitHub Desktop.
$("#somelement").bind("click", function(){
if($("#dialog").is(":visible")){
$("#dialog").hide();
}
// perform function
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment