I make the search string, the answers via ajax are substituted with the list in the block below input, but when typing the browser offers (suggests) my previous requests, how can I remove it?

enter image description here

    2 answers 2

    set autocomplete attribute to off

    <input type="text" name="name" autocomplete="off"> 
       <input type="text" name="name" autocomplete="off" id="name"> JS document.getElementById('name').addEventListener('mouseenter', function(event) { event.target.setAttribute('autocomplete', 'off') });