Optimus Vastgoed

Compare listings

Compare
// Get all elements with the class 'item-price' const elements = document.querySelectorAll('.item-price'); // Loop through the elements elements.forEach(element => { // Check if the content is '0' if (element.textContent.trim() === '0') { // Remove the element from the DOM element.remove(); } });