disable_input_autocomplete

1.0.6 • Public • Published

disable input autocomplete

Disable browser autocomplete without jQuery and 'autocomplete="off"'

How to use

  1. Require 'disableAutocomplete.min.js' to your project or import index.js.
  2. Pass the input id to the 'disableInputAutocomplete' class and call the 'disable()' method.

Example

import {disableInputAutocompleteClass} from "disable_input_autocomplete";
<input name="username" id="myId"/>
<script>
  new disableInputAutocompleteClass('myId').disable();
</script> 

Or

import {disableInputAutocomplete} from "disable_input_autocomplete";
<input name="username" id="myId"/>
<script>
  disableInputAutocomplete('myId');
</script> 

Package Sidebar

Install

npm i disable_input_autocomplete

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

15.4 kB

Total Files

7

Last publish

Collaborators

  • toxawest