document.addEventListener('DOMContentLoaded', function() { const toggleButton = document.getElementById('see-broadband-labels'); const labelsRows = document.querySelectorAll('#see-broadband-labels-row'); // Initially hide all labels rows labelsRows.forEach(row => { row.style.display = 'none'; }); toggleButton.addEventListener('click', function(event) { event.preventDefault(); // Prevent the default anchor click behavior // Toggle the display property for each labels row labelsRows.forEach(row => { if (row.style.display === 'none' || row.style.display === '') { row.style.display = 'block'; // Show the labels row } else { row.style.display = 'none'; // Hide the labels row } }); }); }); Skip to main content