you can forEach
elements and add hidden for visibility css
attribute
var el = document.querySelectorAll("h2.shows-list__title")
const ext = ["Vote 2015 Debates", "Vote 2015 Phone-in", "Vote 2015 Special"];
el.forEach(el =>
ext.includes(el.innerText) &&
el.setAttribute("style", "visibility: hidden;")
)
<li class="shows-list__letter">
<h1 class="shows-list__letter-title">V</h1>
<a class="shows-list__link" target='_blank' href="http://sandbox.cpac.ca/en/programs/vote-2015-debates/">
<h2 class="shows-list__title">Vote 2015 Debates</h2>
<!-- Line A -->
</a>
</li>
<li class="shows-list__letter">
<a class="shows-list__link" target='_blank' href="http://sandbox.cpac.ca/en/programs/vote-2015-phone-in/">
<h2 class="shows-list__title">Vote 2015 Phone-in</h2>
<!-- Line B -->
</a>
</li>
<li class="shows-list__letter">
<a class="shows-list__link" target='_blank' href="http://sandbox.cpac.ca/en/programs/vote-2015-special/">
<h2 class="shows-list__title">Vote 2015 Special</h2>
<!-- Line C -->
</a>
</li>
<li class="shows-list__letter">
<a class="shows-list__link" target='_blank' href="http://sandbox.cpac.ca/en/programs/vote-2015-special/">
<h2 class="shows-list__title">Voting Reform</h2>
<!-- Line D -->
</a>
</li>
I have the code shown here: https://codepen.io/allen-houng/pen/ExYKYdq and a gist here: <div class="parent"> <div class="imageWrapper"> <img class="image" src="imageurl" /> &...
I have the code shown here: https://codepen.io/allen-houng/pen/ExYKYdq and a gist here: <div class="parent"> <div class="imageWrapper"> <img class="image" src="imageurl" /> &...
Here I am mapping financialTransactionDetail array and populating data. Values are coming fine. Now I have to get the sum of TransactionAmount, like the length of array is 3 there are 3 ...
Here I am mapping financialTransactionDetail array and populating data. Values are coming fine. Now I have to get the sum of TransactionAmount, like the length of array is 3 there are 3 ...
At the moment when 'scroll' is at the very bottom, the function getUsers () is called. How to set the scroll so that it doesn't reach the end of the slider, and the getUsers () function is called. ...
At the moment when 'scroll' is at the very bottom, the function getUsers () is called. How to set the scroll so that it doesn't reach the end of the slider, and the getUsers () function is called. ...
I have a div class ".square", i want to show an alert if there is a mouse clicking outside of the div element, i can't find something similar according to mouse event on this website w3schools. ( i ...
I have a div class ".square", i want to show an alert if there is a mouse clicking outside of the div element, i can't find something similar according to mouse event on this website w3schools. ( i ...