0
Great, I’m trying to make a Validator with Boostrap but it’s not working. I want the weight input to be for example : 70 kg. regex I think it’s working but when I give Ubmit, 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
What bootstrap and jquery version is using?
– WMomesso
Boostrap 4 and jquery-3.2.1.slim.min.js
– Jorge Ferreira