select all inputs that arent checkboxes
document.querySelectorAll('input:not([type="checkbox"])');
select all inputs that arent checkboxes
document.querySelectorAll('input:not([type="checkbox"])');
how to select only one checkbox in 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'>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us