Disable jQuery UI Autocomplete

Here is a short & crisp tutorial on how to disable jQuery UI Autocomplete.

This article assumes that you already know how to implement jQuery UI Autocomplete.

So we are jumping to the coding part…

The HTML Code of Autocomplete Text Box may look like this:

And you will be invoking the jQuery UI Autocomplete (and passing options) like:

Now we will add a checkbox to enable/disable jQuery UI Autocomplete.

The enable/disable jQuery UI Autocomplete code:

That’s it. Happy coding !