How to explicitly set checkbox unchecked

Oleg Kubrakov picture Oleg Kubrakov · Apr 29, 2011 · Viewed 50.5k times · Source

I have a xhtml page with transitional doctype having a checkbox that I want to be unchecked after loading. No JavaScript! In Firefox 3.5 (for instance, there may be other browsers) user can check input, than reload page and get input checked. How can I overcome this behaviour?

Answer

T. Junghans picture T. Junghans · Sep 26, 2013

Use

autocomplete="off"

Also have a look at Why does the checkbox stay checked when reloading the page?