I need to allow multiple select sometimes, and sometimes not. I try to remove the attribute and call init, but it still allow to select multi.
$('#dateSelect').removeAttr('multiple');
$('#dateSelect').selectric('init')
I need to allow multiple select sometimes, and sometimes not. I try to remove the attribute and call init, but it still allow to select multi.
$('#dateSelect').removeAttr('multiple');
$('#dateSelect').selectric('init')
Call 'destroy' solved my issue.
$('#Country').removeAttr('multiple');
$('#Country').selectric('destroy')
$('#Country').selectric('init')