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.9.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  <div id="plugin1" class="my-plugin"></div>
  <div id="plugin2" class="my-plugin"></div>
  
  <script type="text/javascript">
    $(document).ready(function(){
      $('#plugin1').myPlugin({
        name: 'Plugin 1'
      });
      $('#plugin2').myPlugin();
      $('.my-plugin').myPlugin('myMethod', 'argument1', 'argument2');
    });
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
cboupro
0viewers