<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function Check(){
var objCtrlType=document.getElementById('CtrlType');
var objCtrlLevel=document.getElementById('CtrlLevel');
alert(objCtrlType.selectedIndex + objCtrlLevel.options[objCtrlLevel.selectedIndex].text);
}
</script>
</head>
<body>
<table>
<tr>
<td>
类型
<select class="input_1" id="CtrlType">
<option selected>警告</option>
<option>问题</option>
</select>
</td>
<td>
级别
<select class="input_1" id="CtrlLevel">
<option>0</option>
<option selected>1</option>
<option>2</option>
<option>3</option>
</select>
</td>
</tr>
</table>
<input name="button" type="button" value="button" onClick="Check()" />
</body>
</html>