JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#">
test
</a>
<div>
    <span>
        abcde
    </span>
</div>

JavaScript

$('a').click(function(){
    alert($('+div', this).html());
});