I haven't used checkboxs with the Bootstrap library yet so I'm trying to clarify something. I've been reading the documentation on Bootstrap form elements and noticed that none of the checkboxs have a name
attribute. It has been my understanding that a checkbox needs a name.
For example this is what the Bootstrap website gives as an example:
<div class="checkbox">
<label>
<input type="checkbox" value="">
Option one is this and that—be sure to include why it's great
</label>
</div>
But if I were to use this wouldn't it have a name
attribute like this:
<div class="checkbox">
<label>
<input type="checkbox" value="" name="bootstrapCheck">
Option one is this and that—be sure to include why it's great
</label>
</div>
Aucun commentaire:
Enregistrer un commentaire