I have a dynamically generated HTML portion on a page with numerous repaeted elements with the class of <div class="paraContent">
I have access to the <head> of this page in the CMS, and want to specify the elements in an array or script to hide certain ones.
My code so far:
var excContent = ['0', '1', '25']
$(".paraContent").each(function(index[excContent]) {
$(this).hide();
})
If I understand what you’re trying to do, that is hiding some of the elements having class
paraContentbased on their index, you could door (faster if you have a big array) :