Javascript | Htaccess | Tutorials

David Carr

3 ways to disable autocomplete on your forms

Here are 3 ways to stop forms remember what has previosuly been entered into them, the fist way is to enter autocomplete="off" into the input you want to disable autcomplete for.

<input type="text" name="firstName" value="" autocomplete="off">

Another way is to apply autcomplete off to the form to disable autocomplete on all the forms inputs.

<form autocomplete="off">

Lastly you can disable autocomplete to all inputs using jQuery.

    $("input").attr("autocomplete", "off"); 


Domains are often purchased from multiple providers, keeping track of where a domain is and its DNS settings can be tricky. Domain Mapper solves this by listing all your domains in one place. View your DNS settings and receive reminders to renew your domains. Try it today.

Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.