JSFiddle - React, Tailwind, and code Playground

by Stefan Pacurar

HTML

<div class="ui-widget">
    <input class="post-to" type="text" />
    <input type="button" id="btnSearchOrder" value="Find order" />
</div>

JavaScript

$("#btnSearchOrder").click(function () {
$(".post-to").autocomplete("search", "");
});

$(function () {



var testData = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"];

    $(".post-to").autocomplete({
        source: testData,
        minLength: 0
    }).on("focus", function () {
        $(this).autocomplete("search", '');
    })
    
    
});