/** |
* 根据值选择下拉列表框的选中项 |
* objSelect 下拉列表框 |
* strValue 值 |
*/ |
function selectValue(objSelect,strValue) { |
if (strValue== "" ) return ; |
for ( var i=0; i<objSelect.options.length; i++) { |
if (objSelect.options[i].value == strValue) { |
objSelect.options[i].selected = true ; |
break ; |
} |
} |
} |