Materialize Autocomplete

Materialize Autocomplete : Autocomplete is basically used to provide the possible values as suggestion to the user. Here in this tutorial we are going to explain how you can create Autocomplete in MaterializeCSS framework. You can also use our online editor to edit and run the code online.

Materialize Autocomplete Example

First create a input box and then initialize the autocomplete using jQuery. Here is a simple example of Autocomplete in MaterializeCSS-

Materialize Autocomplete Example:

Try it »

Autocomplete is part of jQuery plugin so it needs to be initialized as above. If you run the above example it will produce the output something like this –

Materialize Autocomplete Example

Learn More

Let us have some More example and demo about Autocomplete.

Autocomplete Ajax

Sometimes while working with dynamic applications we get data from JSON or API and we display that data in autocomplete. You can get data for Autocomplete using Ajax from the specified URL. Here is an example of ajax autocomplete-

Materialize Autocomplete Ajax Example:

Materialize Autocomplete Not Working?

Sometimes we face issue in autocomplete initialization, the possible reason could be you have not initialized the jQuery for autocomplete.

Materialize Autocomplete Not Working? Reason:

selector – class, id of input box.

User Ans/Comments

📖 Read More