`
liuxi1024
  • 浏览: 384582 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

取得<html:select 中labelProperty的值

阅读更多

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;
}

 

分享到:
评论

相关推荐

    <S:select>用法

    Address private int aid; private String aname; public int getAid() { ... &lt;s:select name="address" headerKey="-1" headerValue="请选择" list="lis" listKey="aid" listValue="aname" /&gt; &lt;/s:form&gt;

    <html:select>: 选择默认值

    &lt;html:select&gt;: 选择默认值

    jsp中htmlselect标签的用法

    html:select&gt;标签的用法 &lt;html:select property="theChoice"&gt; &lt;html:options collection="choiceLists" property="value" labelProperty="description" /&gt; &lt;/html:select&gt;

    myeclipse2017 jsp页面 在select里面写 导致后面代码不是彩色问题

    myeclipse2017 jsp页面 &lt;c:if&gt;在select里面写 导致后面代码不是彩色问题 一半黑一半彩色

    [JavaScript]Javascript 设置与读取Co 三级select列表

    [JavaScript]Javascript 设置与读取Co 三级select列表。

    Struts2标签库的所有

    &lt;%@ taglib uri="/struts-tags" prefix="s" %&gt; 结合例子,重点掌握以下标签的用法 (1) &lt;s:property&gt; (2) &lt;s:set&gt; (3) &lt;s:if&gt; 、&lt;s:elseif&gt;、&lt;s:else&gt; ...(8) &lt;s:select&gt;、&lt;s:radio&gt;、&lt;s:checkboxlist&gt;

    Struts2标签库

    &lt;%@ taglib uri="/struts-tags" prefix="s" %&gt; 结合例子,重点掌握以下标签的用法 (1) &lt;s:property&gt; (2) &lt;s:set&gt; (3) &lt;s:if&gt; 、&lt;s:elseif&gt;、&lt;s:else&gt; ...(8) &lt;s:select&gt;、&lt;s:radio&gt;、&lt;s:checkboxlist&gt;

    flex开发对时间控制

    flex 对时间的关注&lt;mx:Script&gt; &lt;![CDATA[ // Event handler for the DateField change event. private function dateChanged(date:Date):void { if (date == null) selection.text = "Date selected: "; ...

    struts2中#号的用法

    如果对象是当前页面的,则要使用# 1. &lt;s:bean id="locales" name="com.turorial.Locales" &gt;...&lt;/s:bean&gt; &lt;s:property value="#locales"/&gt;

    htmlSelect.txt

    &lt;html:select&gt;生成HTML&lt;select&gt;元素 &lt;html:option&gt;:生成HTML&lt;option&gt;元素 &lt;html:options&gt;:生成一组HTML&lt;options&gt;元素 &lt;html:optionsCollection&gt;生成一组HTML&lt;options&gt;元素

    普元 datacell级联保存

    &lt;d:select dictTypeId="Hy_DeptCategory" onchange="typeChange();"/&gt; &lt;/r:field&gt; &lt;r:field fieldName="qualifications" label="资质等级" &gt; &lt;select onfocus="selectLV(this)" &gt; &lt;/select&gt; &lt;/r:field&gt; &lt;/r...

    struts2 标签库 帮助文档

    4. &lt;s:push value=""&gt;&lt;/s:push&gt;-----value的值push到栈中,从而使property标签的能够获取value的属性 R: 1. 2. &lt;s:radio list=""&gt;&lt;/s:radio&gt;-----单选按钮 3. &lt;s:reset&gt;&lt;/s:reset&gt;-----重置按钮 S: 1...

    eclipse-testng 离线包下载

    &lt;xsl:variable name="testDetailsFilter" select="if ($testNgXslt.testDetailsFilter) then $testNgXslt.testDetailsFilter else 'FAIL,PASS,SKIP'"/&gt; &lt;xsl:variable name="chartWidth" select="round(600 * ...

    Struts中的html控件学习使用

    &lt;html:checkbox &lt;html:multibox &lt;html:select &lt;html:optionCollections 学习这些还是有好处的,有需要的请猛击下载

    孙维琴struts1中掌握html标签小程序

    孙维琴struts1中掌握html标签小程序。有几个比较典型的标签:&lt;html:select&gt; &lt;html:options&gt; &lt;html:link&gt; &lt;html:rewrite&gt; &lt;jsp:useBean&gt; &lt;jsp:setProperty&gt;等的用法

    jsp 开发之struts2中s:select标签的使用

    jsp 开发之struts2中s:select标签的使用 1.第一个例子: &lt;s list={ theme=simple headerKey=00 headerValue=00&gt;&lt;/s&gt; 2.第二个例子: &lt;s list=#{1: label=abc listKey=key listValue=value headerKey=0 headerValue...

    普元 根据checkGroup选中的信息状态显示不同按钮

    &lt;h:param name='select_objs/id' iterateId='id1' property='id' indexed='true' /&gt; &lt;h:param name='select_objs/status' iterateId='id1' property='status' indexed='true' /&gt; &lt;/w:rowCheckbox&gt;

    动易网站标签说明(电子书)

    &lt;UL&gt;{PE.DataSource id="InfoList&lt;XSL:VALUE-OF select="NodeID" /&gt;" datasource="图片栏目循环列表信息" nodeArray="&lt;XSL:VALUE-OF select="arrChildID" /&gt;" parentId="&lt;XSL:VALUE-OF select="$parentId" /&gt;" ...

    数据库分页脚本 jsp

    &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;ʽ&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script type="text/javascript"&gt; function gotoSelectedPage() { var x = document...

    flex导出excel的代码

    &lt;mx:CheckBox change=" {outerDocument.doSelect(data as Object)} " /&gt; &lt;/mx:Component&gt; &lt;/mx:itemRenderer&gt; &lt;/mx:DataGridColumn&gt; &lt;mx:DataGridColumn headerText="names" dataField="names" width="200" /&gt;...

Global site tag (gtag.js) - Google Analytics