---
title: "JS取下拉框中的值！"
author: "fengpeng"
date: "2007-06-25T11:51:16Z"
tags: []
slug: "js"
draft: false
lastmod: "2007-06-25T11:51:16Z"
id: 93924
url: "https://fengpeng.iteye.com/blog/93924"
---

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;