HTML中checkbox复选框选中及没选中值的生成
只需在input标签中加入
onclick="this.value=(this.value==0)?1:0"
<input type="checkbox" name="rememberMe" id="rememberMe" value="1" checked="checked" onclick="this.value=(this.value==0)?1:0"/>
选中值为1没有选中为0
可以做类似于这种自动登录的功能:

只需在input标签中加入
可以做类似于这种自动登录的功能:
