slim-select: Required Notification Not Showing on multiple select
I’m using your multiple select dropdown and i have added the required attribute onto the select but if i did not select any of the options it does not display the Please Select An Item In The List message as normally it would on Google Chrome version 69.0.3497.100. Any issues here or I have missed out anything
<select name="colab[]" id="colab" class="form-control" placeholder="Select Your Member" required multiple>
<option value="" disabled>Select Your Member</option>
@foreach ($allUser as $users)
<option value="{{$users->u_id}}">{{$users->name}}</option>
@endforeach
</select>
new SlimSelect({
select: '#colab',
placeholder: 'Select Your Member',
});
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 16 (7 by maintainers)
@brianvoe Thank you for your feedback! beforeOnChange can be used to validate the selection but not to validate whether anything has been selected at all which is the
requiredattribute intention so it is not ideal.