<form>
<select id="s1" name="s1" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<select id="s1" name="s2" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<select id="s1" name="s3" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<select id="s1" name="s4" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<input type="button" name="a" value="提交" οnclick="chk()">
<script>
function chk(){
var s = document.getElementById("s1");
for(i=0;i<s.length;i++){
alert('页面上有select控件'+'s['+i+']');
}
}
</script>
<select id="s1" name="s1" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<select id="s1" name="s2" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<select id="s1" name="s3" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<select id="s1" name="s4" οnchange=chk()>
<option>1
<option>2
<option>3
<option>4
</select>
<input type="button" name="a" value="提交" οnclick="chk()">
<script>
function chk(){
var s = document.getElementById("s1");
for(i=0;i<s.length;i++){
alert('页面上有select控件'+'s['+i+']');
}
}
</script>