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

后端 未结 16 936
遥遥无期
遥遥无期 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:57

    this.$("#yourSelector").select2("data", { id: 1, text: "Some Text" });
    

    this should be of help.

提交回复
热议问题