JSFiddle - React, Tailwind, and code Playground

by Irvin Dominin

HTML

<label for="tags">Tags:</label>
<input id="tags">
<br>
<br>
<label for="other">Other:</label>
<input id="other">

JavaScript

$(function () {
    var availableTags = [
        "ActionScript",
        "AppleScript",
        "Asp",
        "BASIC",
        "C",
        "C++",
        "Clojure",
        "COBOL",
        "ColdFusion",
        "Erlang",
        "Fortran",
        "Groovy",
        "Haskell",
        "Java",
        "JavaScript",
        "Lisp",
        "Perl",
        "PHP",
        "Python",
        "Ruby",
        "Scala",
        "Scheme"];

    $("#tags").autocomplete({
        source: availableTags,
        close: function () {
            this.blur();
        }
    });
});