11
jQuery select2 nhận giá trị của thẻ select?
Xin chào các bạn, đây là mã của tôi: <select id='first'> <option value='1'> First </option> <option value='2'> Second </option> <option value='3'> Three </option> </select> Đây là mã select2 của tôi: $("#first").select2(); Dưới đây là mã để nhận giá trị đã chọn. $("#first").select2('val'); // It returns first,second,three. Đây là trả về …