Just use the autocomplete attribute with input tag.
The autocomplete attribute indicates whether a data field ought to have autocomplete empowered.
An HTML form with autocomplete attribute :
<html>
<head>
<title>Hubkart</title>
</head>
<body>
<form action="registration.php" autocomplete="on">
First name:<input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
E-mail: <input type="text" name="email" autocomplete="off"><br>
<input type="submit" value="register">
</form>
Fill the form and submit it, then reload the page to see how autocomplete works.
Autocomplete is "on" for the First Name & Last Name, but "off" for the E-mail field.
</body>
</html>
The autocomplete attribute indicates whether a data field ought to have autocomplete empowered.
An HTML form with autocomplete attribute :
<html>
<head>
<title>Hubkart</title>
</head>
<body>
<form action="registration.php" autocomplete="on">
First name:<input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
E-mail: <input type="text" name="email" autocomplete="off"><br>
<input type="submit" value="register">
</form>
Fill the form and submit it, then reload the page to see how autocomplete works.
Autocomplete is "on" for the First Name & Last Name, but "off" for the E-mail field.
</body>
</html>
Post a Comment