JSFiddle - React, Tailwind, and code Playground
by Ivan Myhavko
HTML
<div class="spoilertop" onclick="openClose('cbd6c32c3118dbbdc3fbdc37e0805292')">DIV
</div>
JavaScript
$('.spoilertop').click(function(){
$(this).unbind('click');
$(this).removeAttr('onclick');
alert('Off');
});