JSFiddle - React, Tailwind, and code Playground

by Venkata Panga

HTML

<input type="text" class="input-box">

JavaScript

var fruits = ['Apples', 'Oranges'];


$(function () {
    $(".input-box").autocomplete({
        source: fruits
    }).change(hello);
});

function hello() {
    alert("Hi there!");
}