JSFiddle - React, Tailwind, and code Playground

HTML

<div id="wrapper">
    <div id="overlay"></div>                
    <button disabled>BUTTON</button>
</div>

CSS

#wrapper{
    position: relative;   
}
#overlay{
    position: absolute;        
    top: 0;
    left: 0;
    
    opacity: .1;
    background-color: blue;
    height: 20px;
    width: 70px;
}

JavaScript

$("#overlay").hover(function(){
    alert("here!");
},function(){
    
});