在提交表单后,如何使选中的复选框还保持选中状态?
时间:2010-04-13
来源:互联网
这是我的表单
<form id="form1" name="form1" method="post" action="__URL__/slt">
<table width="316" border="1" align="center">
<caption>
页面参数选择
</caption>
<tr>
<td width="200" height="25" align="center">页面参数选择</td>
<td width="100" height="25" align="center">显示</td>
</tr>
<volist name="block" id="vo">
<tr>
<td width="200" height="25" align="center">{$vo.blockname}</td>
<td width="100" height="25" align="center"><input name="select[]" type="checkbox" id="select" value="{$vo.blockid}" class="sHistory" />
</td>
</tr>
</volist>
<tr>
<td height="25" colspan="2" align="center"><input type="submit" name="Submit" value="确定" onclick="slt();"/> </td>
</tr>
</table>
</form>
<form id="form1" name="form1" method="post" action="__URL__/slt">
<table width="316" border="1" align="center">
<caption>
页面参数选择
</caption>
<tr>
<td width="200" height="25" align="center">页面参数选择</td>
<td width="100" height="25" align="center">显示</td>
</tr>
<volist name="block" id="vo">
<tr>
<td width="200" height="25" align="center">{$vo.blockname}</td>
<td width="100" height="25" align="center"><input name="select[]" type="checkbox" id="select" value="{$vo.blockid}" class="sHistory" />
</td>
</tr>
</volist>
<tr>
<td height="25" colspan="2" align="center"><input type="submit" name="Submit" value="确定" onclick="slt();"/> </td>
</tr>
</table>
</form>
作者: phuihui 发布时间: 2010-04-13
你可以在窗体加载的时候就是选中
作者: NoflyHeart 发布时间: 2010-04-13
引用 1 楼 noflyheart 的回复:
你可以在窗体加载的时候就是选中
你可以在窗体加载的时候就是选中
窗体加载的时候就选中,提交之后,我取消勾选,如何让它不勾选的,保持未勾选状态呢?
作者: phuihui 发布时间: 2010-04-13
將你表單提交的數據在讀取出來...放到這個頁面中....
作者: woshiguozhongbin 发布时间: 2010-04-13
顶,同问
作者: niesen111 发布时间: 2011-06-30
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28