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-2.0.3.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  <button>A</button>
  <button>A</button>
  <button>A</button>
  <button>A</button>
  <button>A</button>
  
</body>
</html>
 
.time {
  background:#ddd;
  width:30px;
  height:80px;
  white-space:nowrap;
  overflow:hidden;
  cursor:pointer;
  margin-bottom:20px;
}
.time p{margin-left:35px;}
 
function toggleAB(){
  var el = this;
  return [
    function() { el.innerHTML = "A"; },
    function() { el.innerHTML = "B"; }
  ][el.tog^=1]();
}
$("button").click( toggleAB );
Output

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

Dismiss x
public
Bin info
roXonpro
0viewers