jquery 1.10.2 获取不到 select 的type

当 $(item).is("select") 为true时
$(item).attr("type") 为空
老版本1.4的时候可以,升级后就不行了。不没有替代方法

$("select").attr("type");

看看API 我记得好像是selected属性吧

你先确认一下你的select里面有没有写type属性,如果有:
if($('select option:selected')){
alert($('select').attr('type'));
}