JSFiddle - React, Tailwind, and code Playground
by Rapha Souza
HTML
<script src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://easyautocomplete.com/dist/easy-autocomplete.themes.min.css">
<link rel="stylesheet" href="http://easyautocomplete.com/dist/easy-autocomplete.min.css">
<script src="http://easyautocomplete.com/dist/jquery.easy-autocomplete.js"></script>
<script src="http://easyautocomplete.com/dist/jquery.easy-autocomplete.min.js"></script>
<link type="text/css" rel="stylesheet"
href="http://easyautocomplete.com/dist/easy-autocomplete.themes.min.css" />
<link type="text/css" rel="stylesheet"
href="http://easyautocomplete.com/dist/easy-autocomplete.min.css" />
<script type="text/javascript" src="http://easyautocomplete.com/dist/easy-autocomplete.themes.min.css"></script>
<script type="text/javascript" src="http://easyautocomplete.com/dist/easy-autocomplete.themes.min.css"></script>
<script type="text/javascript" src="http://easyautocomplete.com/dist/easy-autocomplete.themes.min.css"></script>
<input id="provider-json" />
<script>
var options = {
url: "http://easyautocomplete.com/resources/countries.json",
getValue: "name",
list: {
match: {
enabled: true
}
}
};
$("#provider-json").easyAutocomplete(options);
</script>
CSS
.row {
background: #f8f9fa;
margin-top: 20px;
}
.col {
border: solid 1px #6c757d;
padding: 10px;
}