Change value of materialize select box by jquery

前端 未结 11 1548
滥情空心
滥情空心 2020-12-29 22:18

I want to change materialize select box value by jquery.

I am using $(\'#myselect\').val(\'1\'); on onchange event of other select box but

11条回答
  •  再見小時候
    2020-12-29 22:53

    $('#myselect').formSelect() ;
    

    The new method is formSelect(), use this after you have updated the select.

提交回复
热议问题