JSFiddle - React, Tailwind, and code Playground
by dystroy
HTML
<div id="page">
<div class="exclude">
<div class="module">not good!</div>
<!-- HERE HUGE HTML -->
</div>
<div>
<div class="module">yeah</div>
<div class="module">very good!</div>
</div>
</div>
JavaScript
var $good = $('#page>div:not(.exclude)');
var $mymodules = $('.module', $good);
console.log($mymodules);