Pages

Wednesday, 20 January 2016

How to avoid autofill chrome settings in input tye textboxes

Usually people use to store credit card details in their personal laptops. In that cases in any web application if they get area or location to enter. Automatically it will fetch the credit card details which is stored already in the laptop will display as autofill chrome setteings.

To avoid those autofill settings below are the snippet code.

<form name="index" autocomplete="false" autocomplete="off"  method="post" ENCTYPE="multipart/form-data">
For all the fileds need to place autocomplete="off" as mentioned below
<input class="enter_email_input" autocomplete="off"  name="globalarea5" id="globalarea5" placeholder="Enter Your Area.." type="text" onkeyup="displayinlinearea('caraccessories');">
But somewhere in the form if we place the below snippet code we can avoid the autofill chrome settings.
<input autocomplete="false" class="enter_email_input"  name="whereever6" id="location6" placeholder="Enter Your City.." type="text" onkeyup="displayinlinewherever('caraccessories');" style='display:none;'>

No comments:

Post a Comment

Blog Archive tara gadget tips