[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"/2025/09/17-autocomplete-and-radio-button":3},{"id":4,"title":5,"body":6,"date":56,"description":44,"extension":57,"meta":58,"navigation":59,"path":60,"robots":61,"seo":62,"stem":63,"__hash__":64},"posts/2025/09/17 autocomplete-and-radio-button.md","17 Autocomplete And Radio Button",{"type":7,"value":8,"toc":53},"minimark",[9,18,25,28,31,45],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"autocomplete-and-radio-button","Autocomplete and Radio Button",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 10/7/2016.",[26,27],"br",{},[22,29,30],{},"When I created my web page, I noticed that the state of my radio buttons stays when I navigated away to another page and then back to the same page. I was confused at first and quickly found out that by default the browser (in my case, firefox) has autocomplete enabled by default and was saving the state somehow. Quick search online allow me to turn the feature on/off by adding autocomplete attribute.",[32,33,34],"code-block",{},[35,36,41],"pre",{"className":37,"code":39,"language":40},[38],"language-text","\u003Cinput type=\"radio\" autocomplete=\"off\"/>\n","text",[42,43,39],"code",{"__ignoreMap":44},"",[22,46,47],{},[48,49,50],"a",{"href":50,"rel":51},"https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion",[52],"nofollow",{"title":44,"searchDepth":54,"depth":54,"links":55},2,[],"2025-09-17T00:00:00.000Z","md",{},true,"/2025/09/17-autocomplete-and-radio-button",null,{"title":5,"description":44},"2025/09/17 autocomplete-and-radio-button","HjRb9AmWY1kQwa_mmMEGH8VsNucFe_QqK9gsEFOXYLw",1785167453148]