JSFiddle - React, Tailwind, and code Playground

by troywray

HTML

<body><div><p>some intro text and this is the <span style="color:red">special value</span></p></div>
    <p> here's another example in just a &lt;font&gt; tag <font color="green">more special text</font></p>
</body>

JavaScript

$('body').bind("dblclick", function(event){
    var dblClickElement = $(event.target);
    var specialText = dblClickElement.html();
    alert(specialText);
});