JSFiddle - React, Tailwind, and code Playground

by Rejith R Krishnan

HTML

<input type="text" id="txtFIRM">

JavaScript

availableFirms = ['asdasd','dasdasd','saserwer','werwrwer','ewsdfsdf'];
$('#txtFIRM').autocomplete()
$('#txtFIRM').autocomplete("option", { source: availableFirms });