Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to explicitly set checkbox unchecked

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?

like image 264
Oleg Kubrakov Avatar asked Apr 29 '11 10:04

Oleg Kubrakov


1 Answers

Use

autocomplete="off"

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

like image 104
T. Junghans Avatar answered Oct 05 '22 06:10

T. Junghans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!