21,886
社区成员
发帖
与我相关
我的任务
分享
<tr>
<th class="xjright">部门</th>
<th class="xjleft" >
<select name="classbu">
<option value="技术部">技术部</option>
<option value="财务部">财务部</option>
<option value="人力部">人力部</option>
</select>
</th>
<th class="xjright">科室</th>
<th class="xjleft" >
<select name="classke" style="width: 100px;">
<option value="开发科">开发科</option>
<option value="会计科">会计科</option>
<option value="行政科">行政科</option>
</select>
</th>
<tr>
<th class="xjright">部门</th>
<th class="xjleft" >
<select name="classbu" onchange="foo(this)">
<option value="技术部">技术部</option>
<option value="财务部">财务部</option>
<option value="人力部">人力部</option>
</select>
</th>
<th class="xjright">科室</th>
<th class="xjleft" >
<select name="classke" style="width: 100px;" id="classke">
<option value="开发科">开发科</option>
<option value="会计科">会计科</option>
<option value="行政科">行政科</option>
</select>
</th>
<script>
function foo(o){
var select = document.getElementById("classke");
select.options[o.selectedIndex].selected = true;
}
</script>