I'm trying to use the Bootstrap validator in the checkbox fields, but I'm not sure how to do it. Is there a function in this library that does this or should I validate in pure JS?
Code:
<div class="form-check">
<div class="checkbox">
<label for="ingles" class="form-check-label">
<input type="checkbox" id="ingles" name="idioma" value="ingles" class="form-check-input">Inglês
</label>
</div>
<div class="checkbox">
<label for="espanhol" class="form-check-label ">
<input type="checkbox" id="espanhol" name="idioma" value="espanhol" class="form-check-input">Espanhol
</label>
</div>
</div>