Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  #hello { background:#f1f1f1; color:red; padding:25px }
</style>
</head>
<body>
  <p id="hello">Click me, and nothing will happen. Click outside of me, and I'll vanish.</p>
</body>
</html>
 
$(document).click(function(){
 $("#hello").hide('slow'); 
});
$("#hello").click(function(e){
  e.stopPropagation(); 
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers