Answers for "how to make radio button deselect on click"

2

how to make radio buttons unselectable

Use disabled attribute with input type=radio
<input type="radio" disabled>
Posted by: Guest on June-05-2021
0

how to click on div to select radio button

.isHidden {
  display: none; /* hide radio buttons */
}

.label {
  display: inline-block;
  background-color: red;
  width: 120px;
  height: 120px;
  padding: 5px 10px;
}

.radio:checked + .label {   /* target next sibling (+) label */
  background-color: blue;
}
Posted by: Guest on May-25-2021

Code answers related to "how to make radio button deselect on click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language