Answers for "radio as button select"

5

radio selected

//checked
  <input type="radio" id="huey" name="drone" value="huey"
         checked>
Posted by: Guest on August-10-2020
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

Browse Popular Code Answers by Language