日期:2014-05-16  浏览次数:20330 次

getElementById取不到控件,求助!
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/CommonJS.js"></script>
<script type="text/javascript" src="/js/colorwinglib.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery-ui.js"></script>
<script type="text/javascript" src="/js/datepicker_zh_CN.js"></script>
<script language="javascript" type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/XjBmkh.js"></script>
<style type="text/css">
#LeftSelect {
width: 350px;
}
#RightSelect {
width: 350px;
}
#dropSelectEdit {
width: 450px;
}
</style>
</head>
<body  onresize="SetSelectHeight();">
<table cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td class="tdOperateBar">
                    <div id="pnlOperateJBNewAndModify" style="width: 100%;">
                        &nbsp;&nbsp;&nbsp;
<input type="button" name="btnJBSaveAndClose" value="保存" onclick="saveXjBmkh()" id="btnJBSaveAndClose"
                            class="button" onmouseover="setOperateButtonStyle(this,'over');" onmouseout="setOperateButtonStyle(this,'out');" />&nbsp;&nbsp; </div>
                </td>
            </tr>
        </table>
<table id="tbDetails" style="border-spacing: 1px;">
  <tr>
    <td class="queryLabel">分配方向 </td>
    <td class="queryLabelDetails"><input name="radFangXiang" type="radio" class="queryInt" id="radFangXiang1" value="1" checked="checked" onclick="FangXiang()" />
      <label for="radFangXiang">收货单位-&gt;部门</label>
      <input name="radFangXiang" type="radio" class="queryInt" id="radFangXiang2" value="2" onclick="FangXiang()"/>
      <label for="radFangXiang">部门-&gt;收货单位</label></td>
  </tr>
  <tr>
    <td class="queryLabel" id="tdXiaLaLib">部门</td>
    <td class="queryLabelDetails" id="tdXiaLaVal">
      <!-- 默认显示部门 -->
   &n