JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" readonly="readonly" value="readonly element" />

JavaScript

$('.input').hover(function(){
    $(this).css('background', 'red');
}, function(){
    $(this).css('background', 'blue');
});