<!DOCTYPE html>
<html>
<head>
<script>
function checkField(val)
{
alert("输入值已更改。新值是:" + val);
}
</script>
</head>
<body>
<p>请修改输入字段中的文本,然后在字段外点击以触发 onchange。</p>
请输入文本:<input type="text" name="txt" value="Hello" onchange="checkField(this.value)">
<select class="apply-form-control" name="applykbNo[]" id="selectData" onchange="checkField(this.value)">
<option value="1">倒休</option>
<option value="10">早班</option>
<option value="11">事假</option>
<option value="12">病假</option>
<option value="13">加班</option>
<option value="2">年假</option>
<option value="3">婚假</option>
<option value="4">产假</option>
<option value="5">丧假</option>
<option value="6">产假</option>
<option value="7">出差</option>
<option value="8">忘打卡</option>
<option value="9">迟到</option>
</select>
</body>
</html>