Egfr Calculator with Weight

eGFR Calculator with Weight | Estimate Your Kidney Function :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –border-color: #ccc; –card-background: #fff; –shadow: 0 2px 5px rgba(0,0,0,0.1); } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(–text-color); background-color: var(–background-color); margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; } header { background-color: var(–primary-color); color: white; padding: 20px 0; text-align: center; width: 100%; } header h1 { margin: 0; font-size: 2.5em; } main { width: 95%; max-width: 960px; margin: 20px auto; padding: 20px; background-color: var(–card-background); border-radius: 8px; box-shadow: var(–shadow); text-align: center; } .loan-calc-container { background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-bottom: 30px; } .input-group { margin-bottom: 20px; text-align: left; padding: 15px; border: 1px solid var(–border-color); border-radius: 5px; background-color: #fff; } .input-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(–primary-color); } .input-group input[type="number"], .input-group select { width: calc(100% – 22px); padding: 10px; margin-bottom: 5px; border: 1px solid var(–border-color); border-radius: 4px; box-sizing: border-box; } .input-group select { cursor: pointer; } .helper-text { font-size: 0.85em; color: #666; margin-top: 5px; } .error-message { color: red; font-size: 0.8em; margin-top: 5px; display: block; min-height: 1.2em; } .button-group { display: flex; justify-content: center; gap: 15px; margin-top: 25px; flex-wrap: wrap; } button { padding: 12px 25px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; transition: background-color 0.3s ease; font-weight: bold; } .btn-calculate { background-color: var(–primary-color); color: white; } .btn-calculate:hover { background-color: #003366; } .btn-reset { background-color: #6c757d; color: white; } .btn-reset:hover { background-color: #5a6268; } .btn-copy { background-color: var(–success-color); color: white; } .btn-copy:hover { background-color: #218838; } .results-container { margin-top: 30px; padding: 20px; border: 1px solid var(–border-color); border-radius: 8px; background-color: #e9ecef; text-align: center; } .results-container h3 { margin-top: 0; color: var(–primary-color); } .primary-result { font-size: 2.2em; font-weight: bold; color: var(–primary-color); margin: 15px 0; padding: 15px; background-color: #d0e0f0; border-radius: 6px; display: inline-block; } .intermediate-results div { margin-bottom: 10px; font-size: 1.1em; } .intermediate-results span { font-weight: bold; color: var(–primary-color); } .formula-explanation { margin-top: 20px; font-style: italic; color: #555; font-size: 0.95em; } table { width: 100%; border-collapse: collapse; margin-top: 25px; } th, td { padding: 10px; border: 1px solid var(–border-color); text-align: left; } th { background-color: var(–primary-color); color: white; font-weight: bold; } tr:nth-child(even) { background-color: #f2f2f2; } caption { caption-side: top; font-weight: bold; font-size: 1.1em; margin-bottom: 10px; color: var(–primary-color); } canvas { margin-top: 25px; max-width: 100%; height: auto; } .chart-container { background-color: var(–card-background); padding: 20px; border-radius: 8px; box-shadow: var(–shadow); margin-top: 30px; } .chart-container h3 { margin-top: 0; color: var(–primary-color); } section { margin-top: 40px; padding: 20px; background-color: var(–card-background); border-radius: 8px; box-shadow: var(–shadow); } section h2 { color: var(–primary-color); border-bottom: 2px solid var(–primary-color); padding-bottom: 10px; margin-bottom: 20px; } section h3 { color: var(–primary-color); margin-top: 25px; margin-bottom: 15px; } a { color: var(–primary-color); text-decoration: none; } a:hover { text-decoration: underline; } .faq-list { list-style: none; padding: 0; } .faq-list li { margin-bottom: 15px; border-bottom: 1px dashed var(–border-color); padding-bottom: 10px; } .faq-list li:last-child { border-bottom: none; } .faq-question { font-weight: bold; color: var(–primary-color); cursor: pointer; display: block; position: relative; padding-left: 25px; } .faq-question::before { content: '+'; position: absolute; left: 0; font-weight: bold; color: var(–primary-color); } .faq-answer { display: none; margin-top: 10px; padding-left: 15px; font-size: 0.95em; } .faq-list li.active .faq-answer { display: block; } .faq-list li.active .faq-question::before { content: '−'; } footer { text-align: center; padding: 20px; margin-top: 30px; width: 100%; background-color: var(–primary-color); color: white; font-size: 0.9em; } @media (max-width: 768px) { header h1 { font-size: 1.8em; } main { width: 95%; padding: 15px; } .button-group { flex-direction: column; align-items: center; } button { width: 80%; } }

eGFR Calculator with Weight

Estimate Your Kidney Function

Measured in mg/dL. Consult your lab report.
Your current age in years.
Male Female Biological sex at birth.
Your current weight in kilograms (kg).
Auto-Detect (Use 2021 Equation) White Black or African American Other (Asian, Native American, etc.) Race is not used in the CKD-EPI 2021 equation. Select 'Auto-Detect' for current standard.

Your Estimated eGFR Results

Serum Creatinine: mg/dL
Age: years
Weight: kg
Sex:
Race:

Formula explanation will appear here after calculation.

eGFR Trend Projection

Chart shows projected eGFR based on a hypothetical 5% annual decline from current result. Use for illustrative purposes only.

Key Variables and Units
Variable Meaning Unit Typical Range
Serum Creatinine (Scr) A waste product from muscle metabolism, filtered by kidneys. Higher levels can indicate reduced kidney function. mg/dL 0.6 – 1.3 mg/dL (Adults)
Age Years since birth. Kidney function naturally declines with age. Years 0 – 120
Weight Body mass. Used in some eGFR formulas (e.g., Cockcroft-Gault) to estimate creatinine clearance. kg 20 – 200 kg
Sex Biological sex. Influences muscle mass and therefore creatinine production. N/A Male / Female
Race Historically used in eGFR calculations, though now largely phased out in favor of race-free equations (CKD-EPI 2021). N/A White, Black, Other
eGFR Estimated Glomerular Filtration Rate. The rate at which kidneys filter waste from blood. mL/min/1.73 m² > 90 (Normal), < 60 (Indicative of CKD)

Understanding Your eGFR with Weight: A Comprehensive Guide

The estimated Glomerular Filtration Rate (eGFR) is a crucial indicator of kidney health. This guide delves into how your eGFR is calculated, especially when weight is a factor, and how to interpret the results using our advanced eGFR calculator with weight.

What is an eGFR Calculator with Weight?

An eGFR calculator with weight is a digital tool designed to estimate the efficiency of your kidneys in filtering waste products from your blood. While the standard eGFR calculation primarily relies on serum creatinine levels, age, and sex, incorporating body weight can refine the estimation, particularly for certain older formulas like Cockcroft-Gault for creatinine clearance, which is closely related to eGFR. The most widely used current equations, such as CKD-EPI, often normalize for body surface area, implicitly accounting for size differences.

Who should use it? Individuals concerned about kidney health, those with risk factors for Chronic Kidney Disease (CKD) such as diabetes, high blood pressure, or a family history of kidney problems, and healthcare professionals seeking a quick estimation tool should utilize this eGFR calculator with weight. It's also beneficial for anyone wanting to monitor their kidney function over time.

Common misconceptions: A common misconception is that eGFR is a direct measure of kidney damage. Instead, it's an estimate of kidney function. Another is that a slightly low eGFR automatically means severe kidney disease; it's the trend and context that matter most. Finally, some believe race is a necessary component for all eGFR calculations, but modern equations like CKD-EPI 2021 have removed this variable for greater accuracy and equity.

eGFR Calculator with Weight Formula and Mathematical Explanation

The most current and recommended eGFR calculation uses the CKD-EPI (Chronic Kidney Disease Epidemiology Collaboration) equation. There are several versions, with the CKD-EPI 2021 equation being the latest, which has removed the race coefficient. For clarity, we'll describe the general principle and how weight *can* be involved in related calculations like creatinine clearance.

The CKD-EPI 2021 Equation (simplified concept):

The CKD-EPI 2021 equation is a complex formula that combines serum creatinine (Scr), age, and sex. It incorporates different coefficients (parameters) depending on whether the Scr level is above or below a certain threshold (often 1.0 mg/dL for men and 0.8 mg/dL for women).

For men:
eGFR = 142 × min(Scr/0.9, 1)-1.074 × max(Scr/0.9, 1)-0.329 × 0.9938Age
For women:
eGFR = 142 × min(Scr/0.7, 1)-1.074 × max(Scr/0.7, 1)-0.329 × 0.9938Age × 1.012

Note: The calculator uses the standard CKD-EPI 2021 equation which is race-free. The 'race' input is for context or older equation reference, but our primary calculation ignores it.

How Weight is Related (e.g., Cockcroft-Gault for Creatinine Clearance):

While CKD-EPI is standard for eGFR, older methods like Cockcroft-Gault directly estimated Creatinine Clearance (CrCl), which is closely correlated with GFR. The Cockcroft-Gault formula uses weight:

For men:
CrCl (mL/min) = [(140 – Age) × Weight (kg)] / [72 × Serum Creatinine (mg/dL)]

For women:
CrCl (mL/min) = [(140 – Age) × Weight (kg)] / [72 × Serum Creatinine (mg/dL)] × 0.85

Our calculator primarily uses CKD-EPI 2021 for eGFR, which normalizes for body surface area implicitly. However, we capture weight to show its relevance in related kidney function estimations and for user context.

Formula Variables
Variable Meaning Unit Typical Range
Serum Creatinine (Scr) A waste product from muscle metabolism. mg/dL 0.6 – 1.3 mg/dL
Age Patient's age. Years 0 – 120
Sex Biological sex. N/A Male / Female
Weight Body mass. Used in older CrCl formulas. kg 20 – 200 kg
Race Historical factor, removed in CKD-EPI 2021. N/A White, Black, Other
eGFR Estimated Glomerular Filtration Rate. mL/min/1.73 m² > 90 (Normal); < 60 (CKD)

Practical Examples (Real-World Use Cases)

Understanding the eGFR with weight calculator in action is key. Here are two scenarios:

Example 1: A 60-year-old male with hypertension

Inputs:

  • Serum Creatinine: 1.2 mg/dL
  • Age: 60 years
  • Sex: Male
  • Weight: 85 kg
  • Race: Auto-Detect (CKD-EPI 2021)
Calculation (using CKD-EPI 2021): The calculator processes these inputs through the CKD-EPI 2021 formula. Result: Estimated eGFR: 75 mL/min/1.73 m² Intermediate Values: Serum Creatinine: 1.2 mg/dL, Age: 60, Sex: Male, Weight: 85 kg, Race: N/A (for calculation) Interpretation: This eGFR is within the normal range but slightly lower than average for his age. Given his hypertension, this warrants monitoring by his physician to ensure kidney function remains stable and to manage his blood pressure effectively. If this value trends downwards over time, it could indicate early-stage Chronic Kidney Disease (CKD).

Example 2: A 72-year-old female experiencing fatigue

Inputs:

  • Serum Creatinine: 1.5 mg/dL
  • Age: 72 years
  • Sex: Female
  • Weight: 60 kg
  • Race: Auto-Detect (CKD-EPI 2021)
Calculation (using CKD-EPI 2021): The calculator applies the CKD-EPI 2021 equation. Result: Estimated eGFR: 48 mL/min/1.73 m² Intermediate Values: Serum Creatinine: 1.5 mg/dL, Age: 72, Sex: Female, Weight: 60 kg, Race: N/A (for calculation) Interpretation: This eGFR value falls below 60 mL/min/1.73 m², indicating Stage 3 CKD. The elevated serum creatinine level is the primary driver here. This result suggests a significant reduction in kidney function and requires immediate medical attention for diagnosis, management of underlying causes (like diabetes or kidney disease), and strategies to slow progression. The weight is noted but not directly used in the CKD-EPI 2021 calculation.

How to Use This eGFR Calculator with Weight

Using our eGFR calculator with weight is straightforward:

  1. Enter Serum Creatinine: Find your most recent serum creatinine level from a lab report and input it in mg/dL.
  2. Enter Age: Input your current age in years.
  3. Select Sex: Choose your biological sex (Male or Female).
  4. Enter Weight: Provide your current weight in kilograms (kg).
  5. Select Race (Optional): Choose 'Auto-Detect' to use the latest CKD-EPI 2021 equation. Other options are mainly for reference to older formulas.
  6. Calculate: Click the 'Calculate eGFR' button.

How to read results: The calculator will display your estimated eGFR in mL/min/1.73 m². It will also show the intermediate values you entered. Generally:

  • eGFR > 90: Normal kidney function.
  • eGFR 60-89: Mildly reduced kidney function; may indicate early CKD, especially if persistent.
  • eGFR < 60: Moderately to severely reduced kidney function; indicates CKD. Requires medical evaluation.
  • eGFR < 15: Kidney failure; requires dialysis or transplant.

Decision-making guidance: An eGFR result outside the normal range should prompt a discussion with your healthcare provider. They will consider your specific health history, perform further tests (like urinalysis, blood pressure monitoring), and determine the cause and stage of any potential kidney issues. This calculator is a screening tool, not a substitute for professional medical diagnosis.

Key Factors That Affect eGFR Results

Several factors influence your eGFR and its interpretation:

  1. Serum Creatinine Level: This is the primary determinant. Higher creatinine means less efficient filtration. Muscle mass significantly impacts creatinine production.
  2. Age: Kidney function naturally declines with age. The CKD-EPI equation accounts for this, showing lower eGFR values are expected in older individuals.
  3. Sex: Biological sex influences muscle mass and creatinine production, affecting the calculation constants in the eGFR formula.
  4. Body Weight and Body Surface Area (BSA): While CKD-EPI 2021 is race-free and normalizes for BSA implicitly, weight is crucial for older formulas like Cockcroft-Gault to estimate creatinine clearance. Significant deviations from average body size can affect estimations.
  5. Muscle Mass: Individuals with higher muscle mass (e.g., athletes) may naturally have higher creatinine levels, potentially leading to a lower eGFR, even with healthy kidneys.
  6. Diet: High protein intake, especially cooked meat shortly before a blood test, can temporarily increase serum creatinine.
  7. Medications: Certain drugs (e.g., cimetidine, trimethoprim) can interfere with creatinine secretion by the kidneys, artificially raising serum creatinine levels and lowering calculated eGFR.
  8. Hydration Status: Severe dehydration can temporarily reduce kidney function and increase creatinine concentration.

Frequently Asked Questions (FAQ)

  • What is the difference between eGFR and Creatinine Clearance (CrCl)?
    eGFR estimates the filtration rate per unit of body surface area (mL/min/1.73 m²), using standardized formulas like CKD-EPI. Creatinine Clearance (CrCl) directly estimates the volume of blood cleared of creatinine per minute (mL/min), often calculated using formulas like Cockcroft-Gault which incorporate weight. They are closely related and both used to assess kidney function, but eGFR is now the preferred measure for diagnosing and staging CKD.
  • Why was race removed from the CKD-EPI 2021 eGFR equation?
    The inclusion of race in previous eGFR formulas was based on outdated assumptions about biological differences and has been shown to perpetuate health disparities. The CKD-EPI 2021 equation removes race to provide a more equitable and accurate assessment for all individuals.
  • Is a weight-based calculation more accurate for eGFR?
    For the standard eGFR calculation, the CKD-EPI 2021 equation (which doesn't directly use weight) is the most accurate and recommended. Weight is a key component in estimating *Creatinine Clearance* using formulas like Cockcroft-Gault, which can be useful in specific contexts like medication dosing, but CKD-EPI is preferred for staging CKD.
  • My eGFR is slightly below 90. Should I be worried?
    An eGFR slightly below 90, especially if it's your first test or you are elderly, may not be immediately concerning. However, it warrants monitoring. If the value persists below 60 or shows a downward trend over time, it indicates Chronic Kidney Disease (CKD) and requires medical evaluation.
  • How often should I get my eGFR checked?
    The frequency depends on your individual risk factors. People with diabetes, high blood pressure, a family history of kidney disease, or existing kidney issues should typically have their eGFR checked annually. If you have no risk factors, annual checks may be recommended after age 60 or 70. Discuss this with your doctor.
  • Can diet affect my eGFR results?
    Yes, particularly the serum creatinine level. Consuming large amounts of cooked meat or taking creatine supplements shortly before a blood test can temporarily elevate your serum creatinine, potentially lowering your calculated eGFR. It's best to maintain your usual diet but avoid high-protein meals right before testing.
  • What does it mean if my eGFR is very low (e.g., < 15)?
    An eGFR below 15 mL/min/1.73 m² signifies kidney failure (Stage 5 CKD). At this stage, the kidneys are unable to adequately filter waste, and treatment options such as dialysis or kidney transplantation become necessary to sustain life.
  • Does this calculator diagnose kidney disease?
    No, this calculator provides an *estimate* of kidney function based on inputted values. It is a screening tool. A diagnosis of kidney disease must be made by a qualified healthcare professional based on comprehensive evaluation, including medical history, physical examination, laboratory tests, and imaging.

Explore our other health and financial calculators to gain a more holistic view of your well-being:

© 2023 Your Trusted Health Calculators. All rights reserved.

Disclaimer: This calculator is for informational and educational purposes only. It does not constitute medical advice. Always consult with a qualified healthcare professional for any health concerns or before making any decisions related to your health or treatment.

function calculateEGFR() { var scr = parseFloat(document.getElementById("serumCreatinine").value); var age = parseInt(document.getElementById("age").value); var sex = document.getElementById("sex").value; var weight = parseFloat(document.getElementById("weight").value); var race = document.getElementById("race").value; var egfr = "–"; var formulaText = ""; var intermediateScr = "–"; var intermediateAge = "–"; var intermediateWeight = "–"; var intermediateSex = "–"; var intermediateRace = "–"; // Clear previous errors document.getElementById("serumCreatinineError").textContent = ""; document.getElementById("ageError").textContent = ""; document.getElementById("weightError").textContent = ""; // Input validation var isValid = true; if (isNaN(scr) || scr <= 0) { document.getElementById("serumCreatinineError").textContent = "Please enter a valid serum creatinine level (e.g., 1.0)."; isValid = false; } if (isNaN(age) || age 120) { document.getElementById("ageError").textContent = "Please enter a valid age between 0 and 120."; isValid = false; } if (isNaN(weight) || weight <= 0) { document.getElementById("weightError").textContent = "Please enter a valid weight (e.g., 70)."; isValid = false; } if (!isValid) { document.getElementById("resultsContainer").style.display = "none"; return; } // CKD-EPI 2021 Equation (Race-Free) var egfr_num, egfr_den; var k = (sex === "male") ? 0.9 : 0.7; if (scr / k < 1) { egfr_num = Math.pow(scr / k, -1.074); egfr_den = 1; } else { egfr_num = Math.pow(1, -1.074); egfr_den = Math.pow(scr / k, 0.329); } egfr = 142 * egfr_num * egfr_den * Math.pow(0.9938, age); if (sex === "female") { egfr *= 1.012; } // Round to nearest whole number egfr = Math.round(egfr); // Assign intermediate values intermediateScr = scr.toFixed(1); intermediateAge = age; intermediateWeight = weight.toFixed(1); intermediateSex = sex.charAt(0).toUpperCase() + sex.slice(1); intermediateRace = (race === "auto") ? "Auto-Detect (CKD-EPI 2021)" : race.split(' ').map(function(word) { return word.charAt(0).toUpperCase() + word.slice(1); }).join(' '); // Display results document.getElementById("primaryResult").textContent = egfr + " mL/min/1.73 m²"; document.getElementById("intermediateScr").innerHTML = "Serum Creatinine: " + intermediateScr + " mg/dL"; document.getElementById("intermediateAge").innerHTML = "Age: " + intermediateAge + " years"; document.getElementById("intermediateWeight").innerHTML = "Weight: " + intermediateWeight + " kg"; document.getElementById("intermediateSex").innerHTML = "Sex: " + intermediateSex + ""; document.getElementById("intermediateRace").innerHTML = "Race: " + intermediateRace + ""; formulaText = "The eGFR is estimated using the CKD-EPI 2021 equation. This race-free formula uses your serum creatinine, age, and sex to calculate how effectively your kidneys filter waste. Weight is not directly used in this primary calculation but is relevant for other kidney function estimations like creatinine clearance."; document.getElementById("formulaExplanation").textContent = formulaText; document.getElementById("resultsContainer").style.display = "block"; // Update chart updateChart(egfr); } function updateChart(currentEGFR) { var ctx = document.getElementById("egfrChart").getContext("2d"); var chartData = { labels: [], datasets: [{ label: 'Projected eGFR (mL/min/1.73 m²)', data: [], borderColor: 'var(–primary-color)', backgroundColor: 'rgba(0, 74, 153, 0.1)', fill: true, tension: 0.1, pointRadius: 5, pointBackgroundColor: 'var(–primary-color)' }, { label: 'General Health Threshold', data: [], borderColor: 'var(–success-color)', borderDash: [5, 5], fill: false, pointRadius: 0 }] }; // Populate chart data var egfrValue = isNaN(currentEGFR) ? 0 : currentEGFR; chartData.labels.push("Current"); chartData.datasets[0].data.push(egfrValue); chartData.datasets[1].data.push(egfrValue); // Match threshold to current eGFR for baseline // Project decline over 5 years (hypothetical 5% decline per year) for (var i = 1; i <= 5; i++) { var projectedEGFR = egfrValue * Math.pow((1 – 0.05), i); chartData.labels.push("Year " + i); chartData.datasets[0].data.push(projectedEGFR); chartData.datasets[1].data.push(60); // Threshold for CKD } // Destroy previous chart instance if it exists if (window.myEGFRChart instanceof Chart) { window.myEGFRChart.destroy(); } // Create new chart window.myEGFRChart = new Chart(ctx, { type: 'line', data: chartData, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: false, title: { display: true, text: 'eGFR (mL/min/1.73 m²)' } }, x: { title: { display: true, text: 'Time' } } }, plugins: { legend: { position: 'top', }, title: { display: true, text: 'Projected eGFR Trend (Illustrative)' } } } }); } function resetCalculator() { document.getElementById("serumCreatinine").value = "1.0"; document.getElementById("age").value = "50"; document.getElementById("sex").value = "male"; document.getElementById("weight").value = "70"; document.getElementById("race").value = "auto"; document.getElementById("serumCreatinineError").textContent = ""; document.getElementById("ageError").textContent = ""; document.getElementById("weightError").textContent = ""; document.getElementById("resultsContainer").style.display = "none"; updateChart(0); // Reset chart } function copyResults() { var resultText = "eGFR Results:\n"; resultText += "——————–\n"; resultText += "Estimated eGFR: " + document.getElementById("primaryResult").textContent + "\n"; resultText += "Serum Creatinine: " + document.getElementById("intermediateScr").textContent.replace("Serum Creatinine: ", "").replace(" mg/dL", "") + " mg/dL\n"; resultText += "Age: " + document.getElementById("intermediateAge").textContent.replace("Age: ", "").replace(" years", "") + " years\n"; resultText += "Weight: " + document.getElementById("intermediateWeight").textContent.replace("Weight: ", "").replace(" kg", "") + " kg\n"; resultText += "Sex: " + document.getElementById("intermediateSex").textContent.replace("Sex: ", "") + "\n"; resultText += "Race: " + document.getElementById("intermediateRace").textContent.replace("Race: ", "") + "\n"; resultText += "\nFormula Used:\n" + document.getElementById("formulaExplanation").textContent; var textArea = document.createElement("textarea"); textArea.value = resultText; textArea.style.position = "fixed"; textArea.style.opacity = 0; document.body.appendChild(textArea); textArea.focus(); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'Results copied to clipboard!' : 'Failed to copy results.'; // Optionally show a confirmation message alert(msg); } catch (err) { alert('Failed to copy results.'); } document.body.removeChild(textArea); } // Initialize chart on load window.onload = function() { var canvas = document.getElementById("egfrChart"); if (canvas) { // Ensure canvas context is properly obtained var ctx = canvas.getContext('2d'); if (!ctx) { console.error("Could not get canvas context"); return; } // Initialize with dummy data or a default state updateChart(0); // Initial call to setup chart structure } else { console.error("Canvas element not found"); } }; // Toggle FAQ answers document.addEventListener('DOMContentLoaded', function() { var faqQuestions = document.querySelectorAll('.faq-question'); faqQuestions.forEach(function(question) { question.addEventListener('click', function() { var parentLi = this.parentElement; parentLi.classList.toggle('active'); }); }); });

Leave a Comment