$("select option:selected").attr("自定义属性名");//建议自定义属性名称前加data- 这样更符合html5的规范,例如XXX,这样可以使用另一种方法获取自定义属性的值$("select option:selected").data("name");//这样可以获取到上面例子中的data-name的值
$("#id option:selected").val()