Pitshou
Pitshou

Reputation: 33

How to stop form auto fill

I would like to stop my login form from auto filling the username and password. I used autocomplete ="off" but this seem not to help tried this:

    <input type="text" name="username" class="form-control" placeholder="" autocomplete="off">
    <input type="password" name="password" class="form-control" placeholder="" autocomplete="off">

Upvotes: 0

Views: 147

Answers (1)

raphaelj
raphaelj

Reputation: 36

You can just turn off autocomplete for the form completely seeing it's just a login form<form autocomplete="off"></form>

Upvotes: 1

Related Questions