Answers for "radio label"

15

html input label

<!-- By reference -->
<label for="first_name">First Name</label>
<input type="text" id="first_name" name="first_name">

<!-- By wrapping -->
<label>First Name
  <input type="text" name="first_name">
</label>
Posted by: Guest on May-31-2020
8

html radio button checked

<input type="radio" id="huey" name="drone" value="huey"
         checked> 
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio-->
Posted by: Guest on May-17-2020
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

radio selected

//checked
  <input type="radio" id="huey" name="drone" value="huey"
         checked>
Posted by: Guest on August-10-2020
3

radio buttons

<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label><br>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
Posted by: Guest on September-21-2020

Browse Popular Code Answers by Language