body中:
<li> <select id="select_phone"></select> <input type="button" id="huoqu" value="huoqu"/> </li>
jquery实现:
$("#huoqu").click(function(){ var text = $("#select_phone")[0].options[$("#select_phone")[0].selectedIndex].text; alert(text); });
时间: 2024-12-26 17:41:28