Answers for "select js label with radiobuttons"

1

html radio label clickable

<!-- Wrap elements without giving them each an ID -->
<label>
   <input type="radio" name="mode" value="create">
   <i>create table</i>
</label>

<!--You can use <label> elements, which are designed to do exactly that-->
<input type="radio" id="radCreateMode" name="mode" value="create" />
<label for="radCreateMode"><i>create table</i></label>
Posted by: Guest on March-09-2020
5

javascript how to select radio button

function check() {
  document.getElementById("red").checked = true;
}
Posted by: Guest on March-04-2021

Browse Popular Code Answers by Language