Remove history of input in Chrome
Asked Answered
O

3

7

I don't know how to remove input history in input how to do that?

i write value="" // not work

i read about autocomplete="off" and that's is not what I mean

<input class="barSearch" id="barSearch" placeholder="filtr" type="search" autocomplete="off" value=""/>

I have no idea what to ask google

This problem is only in chrome browser

Ogawa answered 24/7, 2019 at 12:55 Comment(3)
Is this what you're talking about https://mcmap.net/q/57902/-disabling-chrome-autofill?Digital
I believe this is browser controlled. Without actually seeing the way it works, I would think Chrome looks for the name / ids to look for previously entered values. You could randomise the input name and id on each page load or change it intermittently during a session. -- Not sure if this is even feasible - just an idea. Here's what got me thinking : #7223668Gadgeteer
do u want to turn off the suggestions?Actinotherapy
B
19

Press Delete. If the entry is not removed, press Shift+Delete.

Source

Thanks to @Corey:

macOS: Fn + Shift + Delete

Bobolink answered 22/6, 2022 at 19:58 Comment(1)
macOS: Fn + Shift + DeleteConvalescent
G
3

To remove autofill data in chrome. You will have to Clear your auto fill data.

  1. Open the chrome menu using the three dots in the top, right side of your window and click settings, or navigate to chrome://settings in your address bar.
  2. Scroll to the bottom and go into the 'Advanced' section
  3. Under 'Privacy and security' select 'Clear browsing data'
  4. Then make sure only 'Auto-fill' form data is selected and press the Clear data button
  5. Chrome has now removed your auto fill data.
Gymnasiarch answered 24/7, 2019 at 13:7 Comment(0)
T
0

This work for me.... generate aleatory id and data-attr with the real name of input field

 searchid=randomid
              <input class="form-control" type="search" style="width: 292px" name="<%=searchid %>" id="<%=searchid %>" data-name="PRLDEScripcion" value="" maxlength="100" placeholder="Teclee para buscar un artículo...">
                <script>  
                    
                    $("#<%=searchid %>").autocomplete({....

And change name on load

$(function () {
$("input[type='search']").each(function(){$(this).attr("name", $(this).attr("data-name"))})

}
Totemism answered 2/1, 2021 at 9:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.