JSFiddle - React, Tailwind, and code Playground
by niklasvh
HTML
<div class="changeable" contenteditable="true"> Click this div to edit it </div>
JavaScript
var contents = $('.changeable').html();
$('.changeable').blur(function() {
if (contents!=$(this).html()){
alert('Handler for .change() called.');
contents = $(this).html();
}
});