问题描述
解决方案
获取ChoiceGroup多选状态下的值
js checkbox多选值获取
解决方案二:
<html><head><script type=""text/javascript"">function aaa(){alert(document.getElementById(""mySelect"").value)}</script></head><body><form><select id=""mySelect"" onchange=""aaa()""> <option>苹果</option> <option>桃子</option> <option>香蕉</option> <option>桔子</option></select></form></body></html>
时间: 2024-12-10 08:35:42