vendredi 5 octobre 2018

How to get the labels of a selected checkbox

I have wanted to see how could I return only the labels from these set of checkboxes when they selected. Here is the code:

<label class="threeLabel"
<input type="checkbox" id="chkBusinessActivityStore" name= "Business" class="validate-reqchk-byname label: 'Business Activity'" > "&nbsp;&nbsp;Store"
</label>
<label class="threeLabel"
<input type="checkbox" id="chkBusinessActivityCoffeeShop" name= "Business" class="validate-reqchk-byname label: 'Business Activity'" > "&nbsp;&nbsp;Coffee Shop"
</label>
<label class="threeLabel"
<input type="checkbox" id="chkBusinessActivityBar" name= "Business" class="validate-reqchk-byname label: 'Business Activity'" > "&nbsp;&nbsp;Bar"
</label>




Aucun commentaire:

Enregistrer un commentaire