JSFiddle - React, Tailwind, and code Playground

by George Batt

HTML

<div class="myClass">
<h3><a href="http://www.mysite.net/product-id"  class="link " title="xxx">Title of link</a>
</h3>
</div>

JavaScript

$('div.myClass').html(function(){
    return $(this).find('a[href]').prop('href');
});