Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
 <div id="container"> 
   
<div class="element" > blah blah
<div class="setStamp">load X text (will not trigger alert)</div>
blah blah blah blah
</div>
  
<div class="element" > blah blah
<div class="setStamp">load Y text (will not trigger alert)</div>
blah blah blah blah
</div>
   
  </div>
  
  
</body>
</html>
 
.element{
background:#eee;
margin:10px;  
}
.setStamp{
  background:#cf5;
}
 
var $container = $('#container');
$container.on('click', '.element', function(){ // enlarge clicked element
   alert(' toggle class and do isotope stuff ...');
}).on('click', '.setStamp', function( e ){
   e.stopPropagation();
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers