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>
  <script>
    function setChecked() {
     document.getElementById('x1').removeAttribute('checked');
     document.getElementById('x2').setAttribute('checked','checked');
    }
  </script>
  <form>
    <input name="x" type="radio" id="x1" checked>
    <input name="x" type="radio" id="x2">
    <button type="button" onclick="setChecked()">Switch</button>
    <button type="reset">Reset</button>
  </form>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers