JSFiddle - React, Tailwind, and code Playground
HTML
<button id="rn2_copy" value="rn2">></button>
JavaScript
(function($) {
$.fn.toggleDisabled = function(){
return this.each(function(){
this.disabled = !this.disabled;
});
};
})(jQuery);
$('button:[id$="_copy"]').click(function () {
alert("TEST");
});