📜  获取 select2 选定值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:54.292000             🧑  作者: Mango

代码示例3
alert("Selected value is: "+$(".leaderMultiSelctdropdown").select2("val"));

alternatively, if you used a regular selectbox as base, you should be able to
use the normal jquery call, too:

alert("Selected value is: "+$(".leaderMultiSelctdropdown").val());