+ -
当前位置:首页 → 问答吧 → 在提交表单后,如何使选中的复选框还保持选中状态?

在提交表单后,如何使选中的复选框还保持选中状态?

时间: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();"/>&nbsp;&nbsp;</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