Open jxzhangxing opened 6 years ago
Finally I realize the meaning.
I added a custom validator to the bootstrap select element
which looks like:
let select = $('<SELECT />', { 'data-live-search': true, 'id': item['property-name'], 'class': 'form-control selectpicker show-tick', 'data-validate': true, 'data-omnicolumn': 'exampre', 'data-omnicolumn-error': 'example-error' });
and it works fine.
You can make custom validation if you want validate something in select list. if you want just validate select it self then add required to it.
Anyway custom validation is done so like that: add data-equals="foo" input/select
See doc for more info: http://1000hz.github.io/bootstrap-validator/