javascript 下拉列表 自己主动取值 无需value

                                    <select id="applyType" name="$!{status.expression}" class="inp" onchange="receiptAddApplyType()" style="width:150px;">                    
                                        #foreach($item in ${applyTypes})
                                            <option value="$!{item.value}"  #if($!{item.value} == $!{status.value} ) selected #end >$!{item.name}</option>
                                        #end

                                    </select>



function receiptAddApplyType(){
	var s=document.getElementById('applyType');
	alert(s[s.selectedIndex].text);

	}

不做解释,靠谱好用,自己试试

posted @ 2014-08-15 17:12  mengfanrong  阅读(188)  评论(0)    收藏  举报
众安尊享e升2025版 - 底部横幅广告
尊享e升 2025版
🚀 全新升级
百万医疗险全面升级 守护健康人生
✓ 一般医疗300万
✓ 重疾600万
✓ 6年保证续保
✓ 1万免赔额
600万
最高保障
首月特惠价
低至1元起
🛡️ 立即投保