I have a basic question about html. I know when we are using radio button we can group several buttons by giving them the same "name" attribute, i.e. only one of them can be selected. e.g.:
<p> example
<input type="radio" name="example" value="option 1"> option 1
<input type="radio" name="example" value="option 2"> option 2
<input type="radio" name="example" value="option 3"> option 3</p>
So in the example, user can only choose one among option 1, option 2, option 3. My question is whether we can do the same thing for checkbox ? Thank you
Aucun commentaire:
Enregistrer un commentaire