JSFiddle - React, Tailwind, and code Playground

by Eric Howe

HTML

<a id="first">first</a><br><a id="first2">first2</a>

JavaScript

function loadPopup(s) {
    alert(s);
}

$("a").click(function(){
    var toGet  = this.id;
    var holder = $("#" + toGet + '2');
    var toShow = holder.html();
    loadPopup(toShow);
    return false;
});