Delete auto completion in text box

I have several text fields on my page, and this is very annoying automatic full functionality. Is there any way to remove this from my site?

+5
source share
4 answers

Autofill

Starting with HTML 5, auto complete is a form / input attribute supported by all major browsers.

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

Also see here for more usage information:


Autostart and autocorrection

- -, , : , .

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

<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
+16

autocomplete = "off" . , , IE, .

+2

autocomplete="off" .

: <form action="#" autocomplete="off">

+1

You can use jQuery to add the autocomplete attribute after the page loads. This is the best way to make Chrome listen.

<script type="text/javascript" language="javascript">
    jQuery(function() {
        jQuery('#my_input').attr('autocomplete', 'off');
    });
</script>

<input type="text" name="my_input" id="my_input">
0
source

All Articles