ITeye博客

JS取下拉框中的值!

fengpeng · 2007-06-25 11:51 · Javascript · Markdown

java 代码

  1. [html:select property="puOrganization.orgId" value="${equp.puOrganization.orgId}" styleClass="formDetailSelect" style="width:236px" ]
  2. [logic:present name="orgAllList"]
  3. [html:options collection="orgAllList" labelProperty="orgName" property="orgId"/]
  4. [/logic:present]
  5. [/html:select]

js脚本:

java 代码

  1. var org = document.getElementById("puOrganization.orgId");
  2. var orgId = org.options[org.selectedIndex].value;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。