复选框中 value值的问题在线等 谢谢大家
我从数据库里查的数据,前面都有格复选框,我想把复选框后的数据,一同保存到数据库了,但里面的值不能写死例如:
<input type= "checkbox " name= "we " value= "checkbox1 ">
<input type= "checkbox " name= "we " value= "checkbox2 ">
<input type= "checkbox " name= "we " value= "checkbox3 ">
有哪位朋友朋友能告诉我,value该怎么设置
------解决方案-------------------- <input type= "checkbox " name= "we " value= "checkbox1 ">
<input type= "checkbox " name= "we " value= "checkbox2 ">
<input type= "checkbox " name= "we " value= "checkbox3 ">
String name[]=getParameterValues( "we ");
------解决方案--------------------这是楼主想要的吗?
fo.sel(fo.sel.selectedIndex).innerText;