Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    I found that you needed $("#formId").attr("autocomplete", "off") where #formId is the id of your form. Commented Apr 5, 2012 at 14:58
  • @DanDiplo there are many occasions where we use a check-box without a form therefore its illogical to apply ("#formId").attr("autocomplete", "off") Commented Jan 28, 2014 at 17:12
  • 2
    @ClainDsilva Just because you may use a checkbox outside a form doesn't mean anything I said is illogical. You might claim it is not totally comprehensive (though it works for most scenarios) but to say it's not logical is bizarre given it works. Commented Jan 29, 2014 at 20:14
  • @DanDiplo when we can apply auto complete off on checkbox alone, it works fine on that way, I agree that your solution does work but it also applies on all the element within form box. That however may not be the intended behavior. The question was narrowed to checkbox alone and not the entire form. With all due respect, I just want to find the best solution tailored to the question. On this context applying autocomplete off for entire form is not right. Commented Jan 31, 2014 at 7:20
  • @RainChen It's a good feature from firefox, but sometimes good features for users turn out to be headache for Developers. It worked for me! Thanks a lot. :) Commented Nov 24, 2017 at 9:22