onchange 重复选择触发 html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> onchange 重复选择触发 </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<select id="sel" name="test" onmousedown="this.sindex = this.selectedIndex; this.selectedIndex = -1;" onmousemove="if(this.sindex) this.selectedIndex = this.sindex;" onchange="alert(this.sindex = this.selectedIndex);">
<option value="1" selected>测试一</option>
<option value="2">测试二</option>
<option value="3">测试三</option>
<option value="4">测试四</option>
</select>
<input id="tex" type="text" name="text1" id="text1">
</script>
</body>
</html>