Share
autocomplete Attribute
The autocomplete attribute specifies that the form or input field should have an autocomplete function.
Note:The autocomplete attribute works with <form>, and the following <input> types: text, search, url, telephone, email, password, datepickers, range, and color.
When the user starts to type in an autocomplete field, the browser should display options to fill in the field:
<form action="demo_form.asp" method="get" autocomplete="on">
First name: <input type="text" name="fname" />
Last name: <input type="text" name="lname" />
E-mail: <input type="email" name="email" autocomplete="off" />
<input type="submit" />
</form>
Note: In some browsers you may need to activate the autocomplete function for this to work.