JSFiddle - React, Tailwind, and code Playground

by vasi_32

HTML

<input type ="text" id="dropdown_search">
<button type ="button" id ="demButton" class = "buttonclass">
Click
</button>

JavaScript

$("#dropdown_search").on('change keyup paste',function(event){
 $(".buttonclass").trigger('click');

})
$(".buttonclass").on('click',function(event){
alert("I am clicked")
})