Prevent Form Field Autocomplete

Today, I thought of posting a small silly trick that could save time from writing or searching for a code to stop auto-complete option of form fields. Its really easy to do so.

Look on below code:

To stop auto-complete option for fields on the whole form…

To stop auto-complete option for one or more particular fields in a form…

Thanks for reading this post and as usual, I’m open to suggestion and critics (positive of course).

Do comment on!



Share

Post Author: Shreyo

is a developer & involved in project management; loves to learn, guide and keep himself updated on UI/UX and WordPress. He is also an amateur photographer mostly macro shots.