JSFiddle - React, Tailwind, and code Playground

by ajthomascouk

HTML

<input type="text" />

CSS

span{position:relative;}
img{position:absolute; right:2px; top:2px;}

JavaScript

$('input').wrap('<span></span>').after('<img src="http://www.softenersupplies.com/images/close.png" alt="" />');