Jump to content

Does autocomplete cascade through the form?


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">

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">

To be sure...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.