Cómo seleccionar solo una casilla de verificación en HTML

It's easier to use type='radio' with the same value at 'name' attribute.

The selected value is the value that the 'variable' input_name has.

You can parse the selected value by name. Like: document.getElementsByName('input_name')

<input name='input_name' type='radio'>
<input name='input_name' type='radio'>
<input name='input_name' type='radio'>
<input name='input_name' type='radio'>
<input name='input_name' type='radio'>
PanosG