JSFiddle - React, Tailwind, and code Playground
by crowjonah
HTML
<table>
<tr class="field_20 field_facebook">
<td class="label">Facebook</td>
<td class="data"><p><a href="http://facebook.com/facebook">Test</a></p>
<img id="fb" src="http://placehold.it/40x40">
</td>
</tr>
</table>
CSS
#fb {
cursor: pointer;
}
JavaScript
jQuery(document).ready(function(){
jQuery("#fb").click(function() {
var fb = jQuery(".field_facebook").find("a").attr("href");
window.open(fb);
}); //click function ends
}); // document ready ends