JSFiddle - React, Tailwind, and code Playground

HTML

<div>
<span class="foo">some content<b>!!</b></span>
</div>

JavaScript

$('span.foo').live('click', function() {
    var content = $(this).html();
    // use content.
    alert(content);
});