bootstrap-validate
bootstrap-validate copied to clipboard
Does not support Select2
I have simple code below and still doesn't support validation.
<select class="form-control select2" id="group" required>
<option value=""></option>
<option value="1">One</option>
</select>
<script>
$('.select2').select2();
bootstrapValidate("#group", "required:This is required!");
</script>
But it worked on input tag. Any idea?
What version of bootstrap-validate and select 2 are you using? I'll take a look at it.
Here is the codes..
I'm using:
- Select2 4.0.13
- Bootstrap 4.1.3
- Bootstrap Validate 2.2.0
- jQuery 3.6.0
Definitely a bug, thanks for reporting.