Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  
  <script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
  <script src="//jashkenas.github.io/underscore/underscore-min.js"></script>
  <script src="//jashkenas.github.io/backbone/backbone-min.js"></script>
  
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <form onsubmit="addNewPlayer(event);">
    <input type="submit" value="Add New Player New"/>
  </form>
  <p>
    <div id="addPlayerDiv"></div>
  </p>
  <script>
    function addNewPlayer(e) {
      e.preventDefault();
      
      var player = new Player({});
      var newPlayerView = new addPlayerView({el: $("#addPlayerDiv"), model: player});
      newPlayerView.render();
      return false;
    };
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
_alexander_pro
0viewers