Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body id="setOne">
  <a name="setOne"></a>
  <a id="setOne"></a>
  <div name="setOne"></div>
  <form>
    <input type="radio" name="setOne" value="one"> One<br>
    <input type="radio" name="setOne" value="two"> Two<br>
    <input type="radio" name="setOne" value="three"> Three<br>
    <input type="radio" name="setOne" value="four"> Four<br>
    <input type="radio" name="setOne" value="five"> Five<br><br>
    
    <input type="radio" name="setTwo" value="six"> Six<br>
    <input type="radio" name="setTwo" value="seven"> Seven<br>
    <input type="radio" name="setTwo" value="eight"> Eight<br>
    <input type="radio" name="setTwo" value="nine"> Nine<br>
    <input type="radio" name="setTwo" value="ten"> Ten<br>
  </form>
</body>
</html>
 
let setOne = document.getElementsByName('setOne'),
    setTwo = document.getElementsByName('setTwo');
console.log(setOne.length); // 7
console.log(setTwo.length); // 5
Output

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

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers