怎么用jsp给select中options赋值?
在JS中先给select定义个id,通过var select=document.getElementById();取这个select,如果你要改变是的选中option的value的话就用select.option[select.selectedIndex].value给它赋值,如果你要改的是option显示的值的话~就只能用innerHTML了~select.option[select.selectedIndex].innerHTML
Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有