Get started with jquery-autocomplete CDN

MIT licensed

JQuery Autocomplete is a popular library for implementing real-time text suggestions in web forms.

Tags:
  • autocomplete
  • suggest
  • autosuggest
  • suggester
  • jQuery

Stable version

Copied!

How to start using jquery-autocomplete CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with jquery-autocomplete CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/cupertino/jquery-ui.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.cdnhub.io/jquery-autocomplete/1.0.7/jquery.auto-complete.min.js"></script>
    <script>
        $(function() {
            $("#city").autocomplete({
                source: ["New York", "Los Angeles", "Chicago", "Miami", "Boston", "Philadelphia", "Phoenix", "San Antonio", "San Diego", "Dallas"]
            });
        });
    </script>
    <style>
        .ui-autocomplete {
            width: 300px;
        }
    </style>
</head>
<body>
    <label for="city">Enter a city:</label>
    <input type="text" id="city">
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!

All versions