// 获取选中的 option 的 value var selectedValue = $('select').val(); // 获取选中的 option 的自定义属性(如 data-* 属性) var customAttr = $('select option:selected').attr('data-custom'); // 获取选中的 option 的其他属性(如 title) var titleAttr = $('select option:selected').attr('title');
var info = $('#mySelect option:selected').data('info');