HTML checkbox 多选框
网络编程
一、html checkbox多选框语法与结构
<input name="Fruit" type="checkbox" value="" />
使用html input标签,name为自定义,type类型为“checkbox”的表单。
注意:多选框的checkbox name属性必行拥有相同的值。如下面实例。
二、form checkbox用法实例
<form action="" method="get"> 您喜欢的水果?<br /><br /> <label><input name="Fruit" type="checkbox" value="" />苹果 </label> <label><input name="Fruit" type="checkbox" value="" />桃子 </label> <label><input name="Fruit" type="checkbox" value="" />香蕉 </label> <label><input name="Fruit" type="checkbox" value="" />梨 </label> </form>
在线运行
编辑:广州明生医药有限公司
标签:多选,在线,实例,自定义,桃子