[广告]: 新论坛提供稳定BLOG和手机WAP访问,欢迎大家使用!
<select id=Lists > ... </select> var thisform=document.forms[0]; if (thisform.Lists.selectedIndex!="-1") { stringtext=thisform.Lists.options[thisform.Lists.selectedIndex].text; stringvalue=thisform.Lists.options[thisform.Lists.selectedIndex].value; } else{ alert("请选择"); return ; } |