Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove auto complete on text box

I have a few text boxes on my page and find it very annoying the auto complete functionality. Is there any way to remove this from my site?

like image 436
Funky Avatar asked Aug 09 '11 15:08

Funky


People also ask

How do I turn off autocomplete in Word?

If you would prefer that Word not generate predictive text, it is easy to disable it. To do so, click File, followed by Options. When the Options screen appears, select the Advanced tab. Now, deselect the Show Predictions While Typing checkbox, shown in Figure 1, and click OK.

How do I turn off auto complete in HTML?

Use the <input> tag with autocomplete attribute. Set the autocomplete attribute to value “off”.

How do I turn off auto complete on Android?

Users can enable or disable autofill as well as change the autofill service by navigating to Settings > System > Languages & input > Advanced > Input assistance > Autofill service.


2 Answers

Auto Complete

As of HTML 5, the auto complete is a form / input Attribute suported by all major browsers.

<form name="form1" id="form1" method="post" autocomplete="off" action="#">

Also, see here some more information about its usage:

  • W3C cheatsheet
  • MDN
  • MSDN

Auto Capitalize and Auto Correct

If you are preparing an web application or any other Smartphone friendly web page, you might be interested in knowing how to: Disable Autocomplete, Autocapitalize, and Autocorrect.

<input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />

<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
like image 65
Zuul Avatar answered Sep 29 '22 16:09

Zuul


This is how you can do this

autocomplete="new-text"

Add inside you input box or textarea

like image 34
newbdeveloper Avatar answered Sep 29 '22 16:09

newbdeveloper