HTML <textarea> autocomplete Attribute

The autocomplete attribute on a <textarea> tag specifies that the textarea element is autocompleted with a previously entered values.

Example

#

An autocomplete attribute on a <textarea> tag.



<form action="/tutorial/action.html" >
  <textarea autocomplete="on" name="message" 
            placeholder="Enter message" 
            rows="3" cols="60"></textarea> <br /><br />

  <button type="submit">Submit</button>
</form>

Using autocomplete

The autocomplete attribute specifies whether the textarea control will use autocomplete or not.

With autocomplete on, the browser completes textarea entries based on what the user entered before.

Most browsers intentionally ignore autocomplete="off".


Syntax

<textarea autocomplete="on | off">

Values

#

Value Description
on Enables autocomplete in textarea.
off Disables autocomplete in textarea.

Browser support

Here is when autocomplete support started for each browser:

Chrome
17.0 Feb 2012
Firefox
2.0 Oct 2006
IE/Edge
6.0 Aug 2001
Opera
10.0 Oct 2009
Safari
5.1 Oct 2011

You may also like

 Back to <textarea>
Guides