<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); }
javascript 下拉列表 自动取值 无需value,布布扣,bubuko.com
原文:http://blog.csdn.net/hjm4702192/article/details/38117447