JSFiddle - React, Tailwind, and code Playground
HTML
<input id="comment" attached type="button" value="click me" />
JavaScript
$("input#comment:not([attached])").attr("attached", true).click(function() {alert('Can you see me?')});
<input id="comment" attached type="button" value="click me" />
$("input#comment:not([attached])").attr("attached", true).click(function() {alert('Can you see me?')});