JSFiddle - React, Tailwind, and code Playground

HTML

<div id="pageH1">
<h1>value</h1>
<h1>value #2</h1>
<h1>This is another h1 with "value" #3</h1>
<h1 class="no-hide">This has value but will not hide</h1>
<div class="clear"></div>
</div>

JavaScript

$('h1:contains("value"):not(.no-hide)').hide();