0

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')
yantrab
  • 2,482
  • 4
  • 31
  • 52

1 Answers1

0

Call 'destroy' solved my issue.

$('#Country').removeAttr('multiple');
$('#Country').selectric('destroy')
$('#Country').selectric('init')

https://jsfiddle.net/es69ys48/

yantrab
  • 2,482
  • 4
  • 31
  • 52