JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

HTML

<input type="text" id="hotelNameKey" class="formText" placeholder="Masukkan nama kota/daerah atau hotel tujuan Anda"/>

JavaScript

function refreshInput() {
    $(".rightIcon").parent().find("input").val('');
				$(".rightIcon").parent().find("input").focus();
				$(".rightIcon").hide();
				$('.myautocomplete').remove();
				console.log("haha");
}