Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if text is present make div hide

let filteredOut = ['Handtekening', 'Thuis'];

Array.from(document.querySelectorAll(".test")).forEach((elm) => {
 if(filteredOut.includes(elm.textContent.trim())) elm.style.display = "none";
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #text #present #div #hide
ADD COMMENT
Topic
Name
8+6 =