JSFiddle - React, Tailwind, and code Playground

by George Batt

HTML

<span id="flat_title" class="ddTitleText ">
    <img class="fnone" src="images/pinc.png">
    <span class="ddlabel">A</span>
    <span class="description" style="display: none;"></span>
    </span>

JavaScript

$('img.fnone').each(function(){
   $this = $(this);
   $this.appendTo($this.next()); 
});