We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The HTML5/JavaScript AutoComplete is a textbox control that provides a list of suggestions to select from as the user types. It has several out-of-the-box features such as data binding, filtering, grouping, UI customization, accessibility, and more.


JavaScript AutoComplete with data binding

Data binding

You can bind data from different types of data sources, such as an array of primitive data, JSON data collections, or remote data sources using adaptors such as OData, OData V4, URL, JSON, and Web API. Data binding uses our data manager to manage data, and also has customization options for data requests and processing.


Filtering

The built-in filtering support includes a rich set of filtering options that is available to meet all your application needs.

JavaScript AutoComplete with Filter type

Filter type

Filter data based on starts with, ends with, and contains predicates.

JavaScript AutoComplete with Custom filtering

Custom filtering

You can customize the built-in filter query or use your own custom filter libraries to populate data.

Diacritic-sensitive search in AutoComplete with JavaScript

The JavaScript AutoComplete supports diacritic-sensitive searching. This behavior can be turned on or off.

JavaScript AutoComplete with Limit suggestion items

Limit suggestion items

Limit the number of suggestions to be displayed in the filtered data list.

JavaScript AutoComplete with Ignore filter text casing

Ignore filter text casing

You can filter data with or without case sensitivity.

JavaScript AutoComplete with Minimum filter characters length

Minimum filter characters

Set the filter length to begin filtering and populating the data.


Highlight matched text

You can configure different visual appearances for the matching text of each suggestion.

JavaScript AutoComplete with Highlight matched text


The JavaScript AutoComplete component has an autofill search option that completes the word that the user types based on the suggestion text, allowing the user to search for items easily.

JavaScript AutoComplete with Autofill Search


Grouping

The AutoComplete component allows users to see the listed items grouped in categories with individual headers.

JavaScript AutoComplete with Grouping


UI customization

Customize the appearance of the AutoComplete suggestion list using templates.

JavaScript AutoComplete with Item template

Item template

Define a custom appearance for each suggestion item by using item templates.

JavaScript AutoComplete with Header template in suggestion list

Header template

Design a header for the suggestion list using the header template.

JavaScript AutoComplete with Footer template in suggestion list

Design a custom footer for the suggestion list using the footer template.

JavaScript AutoComplete with Icons in suggestion list

Icons

AutoComplete with JavaScript helps to add icons to each suggestion item, like countries with flag icons.

JavaScript AutoComplete with Empty record template in suggestion list

Empty record

Provide a custom message with a custom appearance when there are no search suggestions to display.


Suggestion list

Generate a suggestion list in the dropdown of the javascript material autocomplete for users as they type in the input textbox.

JavaScript AutoComplete with Dimension customization

Dimension customization

The width and height of the suggestion list is adjustable.

JavaScript AutoComplete with Hide or avoid suggestion list

Hide or avoid suggestion list

Hide the default suggestion list and bind the search result onto some other component, such as a data grid.


JavaScript AutoComplete with Floating label

Floating label

Developers can control whether the placeholder should float or not.


Forms support

Seamlessly supports HTML5 forms, Angular template-driven forms, and Angular reactive forms.

Mobile-friendly, responsive UI

Provides a responsive mode that displays an adaptive redesigned UI for mobile devices that recognizes touch gestures.


Other supported frameworks

The AutoComplete component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different AutoComplete platforms from the links below,


Web accessibility

  • Fully supports WAI-ARIA accessibility standards that make the AutoComplete control accessible to screen readers and assistive devices.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.
  • Designs the UI visual elements such as foreground color, background color, line spacing, text, and images based on the WCAG 2.0 standard.
  • Supports right-to-left (RTL) text direction for users working with RTL languages like Hebrew, Arabic, or Persian.

Developer-friendly APIs

Developers can customize all UI elements and control their behaviors according to the end user’s requirements using the rich set of client-side APIs.


JavaScript AutoComplete Code Example

Easily get started with the JavaScript AutoComplete (HTML5 AutoComplete) using a few simple lines of HTML and TS code, as demonstrated below. Also explore our JavaScript AutoComplete Example that shows you how to render and configure the Autocomplete in JavaScript.

<div class="col-lg-12 control-section">
    <div class="control-wrapper">
        <div style='padding-top:70px;'>
            <input type="text" id="games" tabindex="1" />
        </div>
    </div>
</div>
import { loadCultureFiles } from '../common/culture-loader';
/**
 * AutoComplete Default functionality Sample
 */
import { AutoComplete } from '@syncfusion/ej2-dropdowns';
import * as data from './dataSource.json';

    loadCultureFiles();
    // initialize AutoComplete component
    let atcObj: AutoComplete = new AutoComplete({
    //set the local data to dataSource property
    dataSource: (data as any).sportsData,
    // set the placeholder to AutoComplete input element
    placeholder: 'e.g. Basketball'
    });
atcObj.appendTo('#games');



85+ JAVASCRIPT UI CONTROLS

Frequently Asked Questions

  • High-performance loading and searching for autocomplete suggestions in huge volumes of data.
  • Easy integration with other controls such as the DataGrid for modern web and mobile applications.
  • Built-in support for autofill (auto-suggest), hierarchical data binding, highlighted search, and custom search (fuzzy search).
  • Supports standard Syncfusion themes which include Bootstrap v5 and Tailwind CSS.
  • Display floating labels, templated suggestion list and customizable popup dimension.
  • Highly customizable interface with web accessibility features.
  • One of the best JavaScript AutoComplete component in the market that offers a feature-rich UI.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Extensive demos and documentation to learn quickly and get started with JavaScript AutoComplete.

We do not sell the JavaScript AutoComplete separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the JavaScript AutoComplete. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

You can find our JavaScript AutoComplete demo here.

No, our 1,800+ components and frameworks for web, mobile, and desktop, including our JavaScript AutoComplete, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their AutoComplete control alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon