I'm using Bootstrap to validate email address:
<form id="..." novalidate>
...
<div class="form-group">
<input type="email" class="form-control" id="..." required/>
<div class="invalid-feedback">
Please provide a valid email.
</div>
</div>
...
</form>
I'm using novalidate property to allow Bootstrap validate email itself. My HTML contains both Bootstrap CSS and JS refs. Everything works fine.
But I have couple of questions:
- How bootstrap validates email regex? Where can I find code responsible for this (I've tried to look at srcs...)?
- Can I override regex that is used for validation (would be nice to do this without Bootstrap original code modification)?
Thanks in advance.