JSFiddle - React, Tailwind, and code Playground

HTML

<input class="js-test" value="" type="text" disabled=true>

JavaScript

$('a.js-test').on('click mouseover onmouseout', function(event) {
  // you can get event name like following
  var eventName = event.type; // return mouseover/ click
  if($(this).attr('disabled=true')){
  	
  		this.disabled='';
  }
   if($(this).attr('disabled=false')){
  	
  		this.disabled='';
  }
  // you code
  alert('Hello, World!');
});