Answers for "disable browser autocomplete"

5

disable browser autocomplete

<form method="post" action="/form" autocomplete="off">
[…]
</form>
Posted by: Guest on March-20-2020
7

input disable autocomplete

autocomplete="off"
Posted by: Guest on March-30-2020
6

disable autocomplete javascript

someForm.setAttribute( "autocomplete", "off" ); 
someFormElm.setAttribute( "autocomplete", "off" );
Posted by: Guest on March-12-2020
0

disable form input autocomplete

<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
    ...
Posted by: Guest on August-13-2021
0

autocomplete source disable element

$( "#tags" ).autocomplete({
      source: availableTags,
        focus:function(e, ui){
            //if focusing on the extra elements return false thus doing nothing
            return ui.item.idx<=2;
        },
        select:function(e, ui){
            //if selecting on the extra elements return false thus doing nothing
            return ui.item.idx<=2;}
    }) .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
        //small trick to get the current element index while the list is constructing, we set this as a helper for later usage inside the item.
        item.idx=ul[0].childElementCount;
           return $( "<li>" )
               //if index is greater than 2 then we add a custom 'disable' class. this will help formating the disabled elements
               .toggleClass('disable',ul[0].childElementCount>2)
               //appending the element
               .append( "<a>" + item.label + "</a>" ).appendTo( ul );
    };
Posted by: Guest on April-09-2021

Code answers related to "disable browser autocomplete"

Browse Popular Code Answers by Language