How do I change selected value of select2 dropdown with JqGrid?

后端 未结 16 986
遥遥无期
遥遥无期 2020-11-27 10:27

I\'m using Oleg\'s select2 demo, but I am wondering whether it would be possible to change the currently selected value in the dropdown menu.

For example, if the fou

16条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 10:47

    My Expected code :

    $('#my-select').val('').change();
    

    working perfectly thank to @PanPipes for the usefull one.

提交回复
热议问题