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

                                    <select id="applyType" name="$!{status.expression}" class="inp" onchange="receiptAddApplyType()" style="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);

	}

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

原文地址:https://www.cnblogs.com/mengfanrong/p/3915311.html