function ClearAllText(divInput){
var txts = document.getElementById(divInput).getElementsByTagName("input");
for(var i=0;i<txts.length;i++)
{
if(txts[i].type=="text"){
txts[i].value =""; //text 清空
}
}
var selects = document.getElementById(divInput).getElementsByTagName("select");
for(var i=0;i<selects.length;i++)
{
selects[i].options[0].selected = true; //combo选择第一项
}
}<script></script>