Well, I'm trying to do a validator with Boostrap but it's not working. I want the input weight to be for example: 70 kg. The regex I think is working but when I submit, div.invalid-feedback does not appear
<input class="form-control" type="text" name ="peso" pattern="(\d*\.?\d+)\s*(lbs?|kg)" required placeholder="Peso" data-error="Isso nao é kg">
<div class="invalid-feedback">Isso não é kg</div>
Thank you