JSFiddle - React, Tailwind, and code Playground

HTML

<span id="one"> one </span>
<span id="two"> two </span>

JavaScript

$("#one").mouseover(function(){
   $(this).css('background-color', 'red');
});

$("#two").click(function(){
   $(this).css('background-color', 'green');
});
    

    if (any changes on the site) {
        alert('changes detected');
    }