sudheer kumar
sudheer kumar

Reputation: 13

how to remove form auto filling in javascript

I tried several examples, i found autocomplete off will do the requirment but even form has auto-complete=off input fields in the form getting fill by double clicking on the input.

Upvotes: 0

Views: 218

Answers (1)

Vishnu
Vishnu

Reputation: 12283

<form action="demo_form.asp" autocomplete="on">
 First name:<input type="text" name="fname"><br>
 Last name: <input type="text" name="lname"><br>
 E-mail: <input type="email" name="email" autocomplete="off"><br>
<input type="submit">
</form>

Upvotes: 1

Related Questions