There is no direct method with select2, you can use a combinaison of select2 data and jQuery : $("#example").select2().find(":selected").data("id"); ...
確定! 回上一頁