Skip to content

How Younger Students Can Make the Best of Online College Courses

An increasing number of 18 to 24 year-olds now complete at least some of their college coursework online. Though the flexibility to work from virtually anywhere, anytime can be an asset, some structure may be helpful, whether it’s living close to where the program is based, considering hybrid courses, or taking advantage of additional offerings

document.addEventListener("DOMContentLoaded", function() { // Get all accordion toggle elements var accordions = document.querySelectorAll('.accordion-toggle'); // Add click event listeners to each accordion toggle accordions.forEach(function(accordion) { accordion.addEventListener('click', function() { // Get the panel-collapse element directly following this accordion-toggle var panelCollapse = this.nextElementSibling; // Check if this panel-collapse is currently open var isOpen = panelCollapse.classList.contains('open'); // Remove 'open' class from all panel-collapses accordions.forEach(function(acc) { var collapse = acc.nextElementSibling; collapse.classList.remove('open'); }); // Toggle 'open' class only on the clicked panel-collapse if (!isOpen) { panelCollapse.classList.add('open'); } }); }); });