下面的代码可以很简单地隐藏和显示页面内容:
<script>
function display(d){
if(d == 0){
s1.style.display="block";
}else{
s1.style.display="none";
}
}
</script>
<select name="Other1" size="1" onchange="display(this.value)">
<option>无</option>
<option value=0>显示流水号</option>
<option value=1>包长度</option>
</select>
<div style="display:none" id="s1">
流水号最大值:<input name="Max1" type="text" size="15" maxlength="15">
流水号最小值:<input name="Min1" type="text" size="15" maxlength="15">
</div>