Jump to content

Does autocomplete cascade through the form?


Korferer

Recommended Posts

I read this article. About two thirds down it mentions that you can turn off autocomplete on the entire form if you put it in the form tag. The post is from 2011 though so I was wondering if it is still valid? Does anyone know if this is still correct?
 
So, can I use something like;
 

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

Or do I need something like;
 

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

To be sure...
 
 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.