Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <input type="button" name="boton1" value="boton1" id="boton1" >
  <input type="button" name="boton2" value="boton2" id="boton2" disabled="true" >
</body>
</html>
 
document.getElementById("boton1").onclick = function(){
  if( document.getElementById("boton1").disabled === false){
      document.getElementById("boton1").disabled = true;
      document.getElementById("boton2").disabled = false;
  }
  
  return false;
};
document.getElementById("boton2").onclick = function(){
  if( document.getElementById("boton2").disabled === false){
      document.getElementById("boton2").disabled = true;
      document.getElementById("boton1").disabled = false;
  }
  
  return false;
};
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers