JSFiddle - React, Tailwind, and code Playground
by Shiva meda
HTML
<input type="text" id="search_id" onkeyup="searchme(this)">
<div id="resultDiv">
</div>
<div id="project_all">
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
</div>
<script>
function searchme(e) {
if((e.value).length){
$("#project_all").hide();
$("#resultDiv").html(e.value)
}
else
{
$("#project_all").show();
$("#resultDiv").html("")
}
}
</script>