JSFiddle - React, Tailwind, and code Playground

by Nathan Henrie

HTML

<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js'></script>
<div id='jquery_mouseover'>
    <p>Watch me change!</p>
</div>

JavaScript

var oldText = $('#jquery_mouseover').text();

$('#jquery_mouseover').hover(

function () {
    $(this).text('Wow, I changed!');
}, function () {
    $(this).text(oldText);
});