JSFiddle - React, Tailwind, and code Playground
by inspired_jw
HTML
<div id="TA">
I am a JavaScript hacker
</div>
JavaScript
$(function() {
var mem = $("#TA").html();
$("#TA").hover(function() {
$(this).stop().html( 'I am a <a href="foo.php">JavaScript hacker</a>.' );
}, function() {
$(this).stop().html( mem );
});
});