Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>data on divs</title>
<style>
  body { font-family: sans-serif; }
</style>
</head>
<body>
  <div>first</div>
  <div>second</div>
  <p>click the above divs, and look at the console.log output</p>
  <script>
    // also include json2.js for IE7 and below support
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers