2013-11-27

Firefox, don't fill the form element from cache automatically

Firefox is smart. it can remember the value of your form element and refill it back after you refresh the page. but sometimes you control the form element by code and Firefox will fill the value back to a wrong element. For Example: you have a list of check boxes with first one checked. then Firefox will remember the first one is checked. if you delete the first one by code and refresh the page. Firefox will set the second one (now is first one) checked that is not what you want. how to disable the Firefox cache behavior for specific form element? just set attribute autocomplete="off" for the form element.

No comments:

Post a Comment