Search code examples
javascripthtmlcssw3c

Alternatives to using autocomplete in forms


So the autocomplete="off" attribute is invalid HTML according to the w3c. Are there valid ways to do this in HTML, CSS or JavaScript? Or do we just have to plan on some of our forms not validating because we want to use this functionality.


Solution

  • autocomplete is valid HTML5 and is supported by all major browsers. What more do you want?