1.0.6 • Published 6 years ago
disable_input_autocomplete v1.0.6
disable input autocomplete
Disable browser autocomplete without jQuery and 'autocomplete="off"'
How to use
- Require 'disableAutocomplete.min.js' to your project or import index.js.
- 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>