I later found out this was because it counts the number of elements that exist with autocomplete set to chrome-off. I need to know how to disable the auto-fill function in chrome from within code. The reason is that if a user uses auto-fill the field values aren't sent when a form is submitted. 1721. This works great in all browsers except Chrome browser (Version 21.0.1180.89). Setting autocomplete=off autocomplete=new-password MDN reference Placing the following script inside the html $(document).ready ... JavaScript chop/slice/trim off last character in string. I'm encountering this issue for the first time, and autocomplete="off" on the form tag seems to work, even in spite of thousands of complaints scattered across every help site on the internet claiming to the contrary.. Javascript: document.getElementById('myInputId').autocomplete = 'off'; When I click the login input box a drop down appears across all browsers FF, Chrome, IE.. N.B. The problem, however, is that the browsers now do not respect the autocomplete="false" or autocomplete="off". I read many, many threads trying to solve this in an accessible and reasonable way. Chrome ignores the autocomplete="off" attribute. How it works: Add random chars on "name" attribute to avid Browser remember what you submitted before. Chrome has yet to fix a well-known vulnerability first publicized way back in 2013. Can we make override or stop the override by the autocomplete.js script? this applies to users who have previously saved password information They need to forced to enter login details When a user starts typing in the HTML form field, browsers, by default, enable the autocomplete feature. If a site sets autocomplete="off" for username and password fields, then the browser still offers to remember this login, and if the user agrees, the browser will autofill those fields the next time the user visits the page. How to Disable the Browser Autocomplete and Autofill on HTML Form and Input Fields. Despite both the input fields AND the form field having the autocomplete="off" attribute, Chrome insists on showing a drop down history of previous […] Disable same origin policy in Chrome. I have searched the web and found only that or