JSFiddle - React, Tailwind, and code Playground

HTML

<p id="test">If you click the button in Internet Explorer 8, a message will not appear below.</p>

<p>If you click the button in Internet Explorer 8, a message will not appear above.</p>

<input type="button" value="Click Me">

CSS

#test:after {
    content: attr(title);
    display: block;
    color: green;
}

JavaScript

$('input').click(function() {
    $('#test').attr('title', 'Test passed!');
});