如何从记忆复选框状态prevent浏览器? [英] How to prevent browsers from remembering checkbox state?

查看:314
本文介绍了如何从记忆复选框状态prevent浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Web表单,当我编程取消这是previously选中的复选框,浏览器尝试记住previous状态,回传后再次检查。

In a web form, when I programatically uncheck checkboxes which was previously checked, the browsers try to "remember" the previous state and check them again after postback.

有什么类似于自动完成=关闭来做到这一点?反正,我怎么能prevent从检查哪些我想成为未选中的复选框的浏览器?

Is there anything similar to autocomplete=off to accomplish this? Anyway, how can I prevent the browser from checking checkboxes which I want to become unchecked?

推荐答案

我相信有些浏览器(如FF)将尝试并记住表单数据。只是改变后的表单名称,它会认为这是新的东西。

I believe some browsers (like FF) will try and remember form data. Just change the form name on post and it will think it is something new.

这篇关于如何从记忆复选框状态prevent浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆