JTEC Training

No Data Available in this Section
No Data Available in this Section
document.addEventListener('DOMContentLoaded', function() { const headers = document.querySelectorAll('.jtec-accordion-header'); headers.forEach(function(header) { header.addEventListener('click', function() { const parent = this.parentElement; const content = parent.querySelector('.jtec-accordion-content'); const icon = this.querySelector('.jtec-accordion-icon'); if (parent.classList.contains('active')) { parent.classList.remove('active'); content.style.maxHeight = null; icon.textContent = '+'; } else { parent.classList.add('active'); content.style.maxHeight = content.scrollHeight + 'px'; icon.textContent = '−'; } }); }); });