Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Experiment</title>
<script type="text/javascript" 
           src="http://code.jquery.com/jquery.min.js"></script>
</head>
<body>
<script>
  $(function(){
    $('a').on('click', function(e){
      e.preventDefault();
    doHiding();
    });
  });
  function doHiding() {
    $("div.thread").each(function() {
       $(this).hide();
    });
  }
</script>
<a href="#">Hide</a>
<div class="thread">I like trains.</div>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers