function chooseType(type)
{
$("#matename").html("<option value=''>请选择</option>");
if(type!="")
{
$.ajax({
url : "<%=basePath%>chooseMatetype.action?type=" + type,
type : "post",
cache : false,
dataType : "json", //返回json数据
success:function(data){
$("#matename").append(data.str);
}
});
}
}