JSFiddle - React, Tailwind, and code Playground

HTML

<div class="suit-gallery-btn">
    <a href="../images/galleries/business/DSC_0055.jpg" rel="lightbox[business]" title="Stylish button 3 suit, beige lightweight high twist cool wool Holland &amp; Sherry from £695 choice of 90 designs and colours">Click for more information</a><span class='share-span'>hi there</span>
</div>

JavaScript

jQuery(".suit-gallery-btn").each(function(index) {
    jQuery(this).children().remove('span');
    //jQuery(this).append("<span class='share-span'>hi there</span>");
});