Home html Input field is auto filled with username saved in browser form
Reply: 0

html Input field is auto filled with username saved in browser form

user1486
1#
user1486 Published in June 19, 2018, 2:26 pm

This question already has an answer here:

  • How do you disable browser Autocomplete on web form field / input tag? 58 answers

Problem: I created an input field with type text, but when page loads it is auto filled with username saved (saved for this website login page)in browsers form data. i want to show it clean when page load.

<input type="text" class="form-control search-field" placeholder="Search Item" 
ng-model="vm.applyCategFoodSearch" autocomplete="off" 
name="txtFieldForSearchItems">

i am unable to find solution, autocomplete='off' was suggested by many other sources, but issue not fixed. if it can be handled using html,jquery,javascript,angularjs. it will be good. I also reset the values in controller

 vm.applyCategFoodSearch='';

timeout also tried but not working

      $timeout( function(){
         vm.applyCategFoodSearch='';
    }, 5000 );

if i set time out to 10seconds, it will work, but its not the solution. i am sending ajax call for food categories,when it returns, this timeout code will run with 10second delay.it will work. other than 10second delay.it will not work.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.314455 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO