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>Test Page</title>
<style>
  body {
    font-family: sans-serif;
  }
</style>
</head>
<body>
  <div id="target" data-one="foo" data-two-three-four="bar">I'm the div</div>
  <input type="button" id="theButton" value="Click Me">
</body>
</html>
 
jQuery(function($) {
  $("#theButton").click(function() {
    
  });
  
  function display(msg) {
    $("<p>").html(String(msg)).appendTo(document.body);
  }
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers