JSFiddle - React, Tailwind, and code Playground

by mblase75

HTML

<div class="div_class">
    <img src="blah.jpg" title="blah"/>
    <img src="what.jpg" title="what"/>
    <img src="this.jpg" title="this"/>
</div>

JavaScript

$('div.div_class').find('img').wrap('<div>').after(function() {
    return $('<p>').text($(this).attr('title'));
});