Created
August 28, 2013 18:20
-
-
Save JumboLove/6369415 to your computer and use it in GitHub Desktop.
Disable autocomplete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // disables browser auto completion for the given element | |
| disableAutoComplete: function(selector) { | |
| jQuery(selector).attr("autocomplete", "off"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment