<html:option获取文本值

<p class="w120">变更后IP:</p>
    <div class="comBobox w200 f_l">
    <html:select name="ITSM_J_EQUIPMENT_CHANGE/CHANGE_IP_INSTANCEID" style="width:100%" attributesText=" eos_isnull='false' eos_displayname='变更后IP'">
    <html:option value="-1">请择...</html:option>
         <html:options labelProperty="IpList[@type='ip']/entity/INSTANCENAME" property="IpList[@type='ip']/entity/INSTANCEID"></html:options>
    </html:select>
 </div>
1 var changeIp = $('select[name="ITSM_J_EQUIPMENT_CHANGE/CHANGE_IP_INSTANCEID"]').find("option:selected").text();    //获取文本值
2 //alert(changeIp);
3 $('input[name="ITSM_J_EQUIPMENT_CHANGE/CHANGE_IP"]').val(changeIp);

 

posted @ 2015-10-09 18:09  Yes,I do  阅读(1194)  评论(0编辑  收藏  举报