I can change the original select's selected option by doing something like-
$('#mySelectList option:first').prop('selected', true)
but that doesn't update the selectric display of the select.
According to this pull request, you can "refresh" the plugin:
$('#mySelectList').prop('selectedIndex', 0).selectric('refresh');
From the documentation:
$('select').selectric('refresh'); // Reconstruct the instance of plugin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With