To test whether Select2 has been initialized on a particular DOM element, you can check for the select2-hidden-accessible class: if ($('#mySelect2').
確定! 回上一頁