- Where Developers Learn, Share, & Build Careers
I have completely connected to different types of input boxes whenever the user types something correctly , Then loads the objects. However, in one of the texterrari , I want to completely disable it by default, and enable the user when typing it in "@". How to do this This will do the trick: Live example -
$ ('Textarea'). Autocomplete ({source: availableTags}) Autocomplete ('disable') .on ('keypress', function (event) {// Determine whether '@' was closed if (event.shiftKey & amp;; Amp; event.keyCode == = 64) {$ (this). Autocomplete ('Enable'); Return False;}});
Comments
Post a Comment