1、将select 标签中labelProperty值放到隐含域incomings.enterName
<html:select property="incomings.enterId" onchange="writeEntername();" >
<option value="-1">==选择外地企业==</option>
<html:options collection="outsideEps" property="orgNo" labelProperty="orgName"/>
</html:select>
<html:hidden property="incomings.enterName"/>
2、调用js writeEntername();
function writeEntername(){
// 得到下拉框的 labelProperty 的值
var select = document.incomingsForm['incomings.enterId'];
var option = select.options[select.selectedIndex];
incomingsForm['incomings.enterName'].value = option.innerText;
}
分享到:
相关推荐
Address private int aid; private String aname; public int getAid() { ... <s:select name="address" headerKey="-1" headerValue="请选择" list="lis" listKey="aid" listValue="aname" /> </s:form>
<html:select>: 选择默认值
html:select>标签的用法 <html:select property="theChoice"> <html:options collection="choiceLists" property="value" labelProperty="description" /> </html:select>
myeclipse2017 jsp页面 <c:if>在select里面写 导致后面代码不是彩色问题 一半黑一半彩色
[JavaScript]Javascript 设置与读取Co 三级select列表。
<%@ taglib uri="/struts-tags" prefix="s" %> 结合例子,重点掌握以下标签的用法 (1) <s:property> (2) <s:set> (3) <s:if> 、<s:elseif>、<s:else> ...(8) <s:select>、<s:radio>、<s:checkboxlist>
<%@ taglib uri="/struts-tags" prefix="s" %> 结合例子,重点掌握以下标签的用法 (1) <s:property> (2) <s:set> (3) <s:if> 、<s:elseif>、<s:else> ...(8) <s:select>、<s:radio>、<s:checkboxlist>
flex 对时间的关注<mx:Script> <![CDATA[ // Event handler for the DateField change event. private function dateChanged(date:Date):void { if (date == null) selection.text = "Date selected: "; ...
如果对象是当前页面的,则要使用# 1. <s:bean id="locales" name="com.turorial.Locales" >...</s:bean> <s:property value="#locales"/>
<html:select>生成HTML<select>元素 <html:option>:生成HTML<option>元素 <html:options>:生成一组HTML<options>元素 <html:optionsCollection>生成一组HTML<options>元素
<d:select dictTypeId="Hy_DeptCategory" onchange="typeChange();"/> </r:field> <r:field fieldName="qualifications" label="资质等级" > <select onfocus="selectLV(this)" > </select> </r:field> </r...
4. <s:push value=""></s:push>-----value的值push到栈中,从而使property标签的能够获取value的属性 R: 1. 2. <s:radio list=""></s:radio>-----单选按钮 3. <s:reset></s:reset>-----重置按钮 S: 1...
<xsl:variable name="testDetailsFilter" select="if ($testNgXslt.testDetailsFilter) then $testNgXslt.testDetailsFilter else 'FAIL,PASS,SKIP'"/> <xsl:variable name="chartWidth" select="round(600 * ...
<html:checkbox <html:multibox <html:select <html:optionCollections 学习这些还是有好处的,有需要的请猛击下载
孙维琴struts1中掌握html标签小程序。有几个比较典型的标签:<html:select> <html:options> <html:link> <html:rewrite> <jsp:useBean> <jsp:setProperty>等的用法
jsp 开发之struts2中s:select标签的使用 1.第一个例子: <s list={ theme=simple headerKey=00 headerValue=00></s> 2.第二个例子: <s list=#{1: label=abc listKey=key listValue=value headerKey=0 headerValue...
<h:param name='select_objs/id' iterateId='id1' property='id' indexed='true' /> <h:param name='select_objs/status' iterateId='id1' property='status' indexed='true' /> </w:rowCheckbox>
<UL>{PE.DataSource id="InfoList<XSL:VALUE-OF select="NodeID" />" datasource="图片栏目循环列表信息" nodeArray="<XSL:VALUE-OF select="arrChildID" />" parentId="<XSL:VALUE-OF select="$parentId" />" ...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ʽ</title> </head> <body> <script type="text/javascript"> function gotoSelectedPage() { var x = document...
<mx:CheckBox change=" {outerDocument.doSelect(data as Object)} " /> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> <mx:DataGridColumn headerText="names" dataField="names" width="200" />...