JSFiddle - React, Tailwind, and code Playground

HTML

<div class="button">Hello</div>

CSS

.button:after {
    content: " Hide this using jQuery";
    color: red;
}

.hide_btn_pseudo:after {
    display: none;
}

JavaScript

$('div.button').addClass('hide_btn_pseudo');