I want to change materialize select box value by jquery.
I am using $(\'#myselect\').val(\'1\'); on onchange event of other select box but
$(\'#myselect\').val(\'1\');
onchange
In 2018 (Materialize v1.0.0-rc.2), first you have to set your option programmatically:
Materialize v1.0.0-rc.2
$('#SELECT-ID').find('option[value="SELECT-VALUE"]').prop('selected', true);
And then re-initialise the select input with:
select
$("#SELECT-ID").formSelect();
Hope it helps!