Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <p>You clicked</p>
</body>
</html>
 
p { display: block; padding: 2px; color: white; position: absolute; background: red; display: none; top: 20px; left: 100px; }
div.x { margin-bottom:3px; }
 
$('body').on('click', 'span', function () {
  $('p').toggle();
})
.on('click', 'div.x', $.noop)
.on('click', 'div.x div', $.noop);
var div = $('<div class="x"><div><span>Click here</span></div></div>');
var i = 1000;
    
while (i--) {
  $('body').append(div.clone());
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers