How to Calculate Water Intake by Body Weight

How to Calculate Water Intake by Body Weight | Hydration Calculator :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –input-border-color: #ccc; –shadow-color: rgba(0, 0, 0, 0.1); } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(–background-color); color: var(–text-color); line-height: 1.6; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; } .container { width: 100%; max-width: 980px; margin: 20px auto; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px var(–shadow-color); display: flex; flex-direction: column; align-items: center; } header { width: 100%; text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; } header h1 { color: var(–primary-color); font-size: 2.5em; margin-bottom: 10px; } header p { font-size: 1.1em; color: #555; } .calculator-section { width: 100%; margin-bottom: 40px; } .loan-calc-container { background-color: var(–background-color); padding: 25px; border-radius: 8px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); width: 100%; box-sizing: border-box; } .input-group { margin-bottom: 20px; width: 100%; } .input-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #444; } .input-group input[type="number"], .input-group select { width: calc(100% – 20px); padding: 12px 10px; border: 1px solid var(–input-border-color); border-radius: 4px; font-size: 1em; box-sizing: border-box; transition: border-color 0.3s ease; } .input-group input[type="number"]:focus, .input-group select:focus { border-color: var(–primary-color); outline: none; } .input-group .helper-text { font-size: 0.85em; color: #666; margin-top: 5px; display: block; } .input-group .error-message { color: #dc3545; font-size: 0.8em; margin-top: 5px; height: 1.2em; display: block; } .button-group { display: flex; justify-content: space-between; margin-top: 25px; gap: 10px; } button { padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; font-weight: bold; transition: background-color 0.3s ease, transform 0.2s ease; flex: 1; } .calculate-button { background-color: var(–primary-color); color: white; } .calculate-button:hover { background-color: #003366; transform: translateY(-2px); } .reset-button { background-color: #6c757d; color: white; } .reset-button:hover { background-color: #5a6268; transform: translateY(-2px); } .copy-button { background-color: #ffc107; color: #212529; } .copy-button:hover { background-color: #e0a800; transform: translateY(-2px); } #results { margin-top: 30px; padding: 20px; background-color: #e9ecef; border-radius: 8px; width: 100%; box-sizing: border-box; text-align: center; border: 1px solid #dee2e6; } #results h2 { margin-top: 0; color: var(–primary-color); font-size: 1.8em; margin-bottom: 15px; } .primary-result { font-size: 2.5em; font-weight: bold; color: var(–success-color); margin: 15px 0; padding: 15px; background-color: #fff; border-radius: 6px; border: 1px solid var(–success-color); display: inline-block; } .result-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; font-size: 1.1em; } .result-item { background-color: #fff; padding: 10px 15px; border-radius: 5px; border: 1px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } .result-item span { font-weight: bold; color: var(–primary-color); } .formula-explanation { margin-top: 20px; font-size: 0.95em; color: #555; text-align: left; background-color: #fff; padding: 15px; border-radius: 5px; border: 1px dashed #ccc; } .charts-section, .table-section { width: 100%; margin-top: 30px; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px var(–shadow-color); } caption { font-size: 1.2em; font-weight: bold; color: var(–primary-color); margin-bottom: 15px; caption-side: top; text-align: center; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } th, td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; } th { background-color: #e9ecef; color: #444; font-weight: bold; } tr:nth-child(even) { background-color: #f8f9fa; } canvas { display: block; margin: 20px auto; border: 1px solid #eee; border-radius: 5px; } .article-content { width: 100%; background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px var(–shadow-color); margin-top: 30px; text-align: left; } .article-content h2 { color: var(–primary-color); margin-top: 30px; border-bottom: 2px solid var(–primary-color); padding-bottom: 8px; } .article-content h3 { color: #0056b3; margin-top: 25px; border-bottom: 1px solid #0056b3; padding-bottom: 5px; } .article-content p, .article-content ul, .article-content ol { margin-bottom: 15px; color: #333; } .article-content li { margin-bottom: 8px; } .article-content code { background-color: #eef; padding: 2px 5px; border-radius: 3px; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; } .article-content a { color: var(–primary-color); text-decoration: none; font-weight: bold; } .article-content a:hover { text-decoration: underline; } .faq-item { margin-bottom: 15px; } .faq-item strong { color: var(–primary-color); cursor: pointer; display: block; margin-bottom: 5px; } .faq-item p { margin-left: 15px; display: none; /* Hidden by default */ } .related-tools ul { list-style: none; padding: 0; } .related-tools li { margin-bottom: 10px; } footer { width: 100%; text-align: center; padding: 20px; margin-top: 40px; font-size: 0.9em; color: #666; border-top: 1px solid #eee; } @media (max-width: 768px) { .container { margin: 10px auto; padding: 15px; } header h1 { font-size: 2em; } #results { padding: 15px; } .primary-result { font-size: 2em; } .button-group { flex-direction: column; gap: 8px; } button { width: 100%; } th, td { padding: 8px 10px; font-size: 0.9em; } }

How to Calculate Water Intake by Body Weight

Your essential guide to optimal daily hydration. Use our calculator to find your personalized water intake needs.

Enter your weight in kilograms (kg).
Sedentary (little to no exercise) Lightly Active (light exercise/sports 1-3 days/week) Moderately Active (moderate exercise/sports 3-5 days/week) Very Active (hard exercise/sports 6-7 days a week) Extra Active (very hard exercise/sports & physical job) Choose the option that best describes your typical daily activity.
Temperate Hot and Humid Very Hot and Dry Consider the typical weather conditions where you live and spend time.

Your Hydration Needs

— L
Base Intake: — L
Activity Adjustment: — L
Climate Adjustment: — L
Formula Used:

Your daily recommended water intake is calculated by multiplying your body weight (in kg) by a base factor (e.g., 30-35 ml per kg). This base intake is then adjusted based on your activity level and the climate you are in. The general guideline is:

(Body Weight in kg * Base Factor) * Activity Level Multiplier * Climate Factor = Total Daily Water Intake (in ml)
We use a base factor of 33 ml/kg for this calculation, which is a common starting point.

Hydration Needs by Weight Category
Weight Category (kg) Recommended Daily Intake (L) Base Intake (L)
< 50 kg 1.7 – 2.2 1.65
50 – 60 kg 2.2 – 2.7 1.98
60 – 70 kg 2.7 – 3.2 2.31
70 – 80 kg 3.2 – 3.7 2.64
80 – 90 kg 3.7 – 4.2 2.97
> 90 kg 4.2+ L 3.30+

Note: These are general estimates. Individual needs may vary. The calculator provides a more personalized calculation.

Impact of Activity Level and Climate on Water Intake

Understanding Your Daily Water Intake

What is Hydration Calculation by Body Weight?

Calculating your daily water intake based on body weight is a fundamental method to determine the optimal amount of fluid your body needs to function efficiently. This approach takes into account your physiological mass, providing a personalized baseline for hydration. It's a critical aspect of maintaining overall health, as water plays a vital role in numerous bodily functions, including temperature regulation, nutrient transport, waste removal, and joint lubrication.

Who should use it: Anyone looking to improve their health and well-being can benefit from understanding their hydration needs. This includes athletes, individuals with specific health conditions, people living in extreme climates, and even those who simply want to ensure they're drinking enough water daily. It's a foundational metric for a healthy lifestyle.

Common misconceptions: A prevalent misconception is that "8 glasses a day" is a universal rule for everyone. While this is a simple guideline, it doesn't account for individual differences in body weight, activity levels, climate, or health status. Another myth is that thirst is always a reliable indicator of dehydration; by the time you feel thirsty, you might already be mildly dehydrated. Relying on body weight calculations provides a more proactive and accurate approach.

Daily Water Intake Formula and Mathematical Explanation

The calculation for daily water intake by body weight is based on established physiological principles. A common starting point is to recommend a certain amount of water per kilogram of body weight. This base recommendation is then adjusted to reflect external factors that increase fluid loss or the body's need for hydration.

Step-by-Step Derivation:

  1. Base Intake Calculation: Determine the baseline water requirement by multiplying your body weight by a standard factor. A widely accepted factor is 30-35 milliliters (ml) of water per kilogram (kg) of body weight. For instance, if you weigh 70 kg, your base intake would be around 70 kg * 33 ml/kg = 2310 ml.
  2. Activity Adjustment: Increase fluid intake based on physical exertion. More intense and prolonged exercise leads to greater fluid loss through sweat. A multiplier is applied to the base intake to account for this.
  3. Climate Adjustment: Further adjust intake for environmental conditions. Hot and humid or hot and dry climates increase sweat rates, necessitating higher water consumption. Another multiplier is applied here.
  4. Total Daily Water Intake: The final recommended amount is the sum of these adjustments, providing a comprehensive daily hydration target.

Variable Explanations:

  • Body Weight: The total mass of a person's body. This is the primary factor, as larger bodies generally require more water.
  • Base Factor: A standard recommended fluid amount per unit of body weight (e.g., ml/kg). This is a scientific approximation of metabolic water needs.
  • Activity Level Multiplier: A factor that increases the recommended intake based on the intensity and duration of physical activity.
  • Climate Factor: A multiplier that accounts for increased fluid loss due to environmental temperature and humidity.

Variables Table:

Variable Meaning Unit Typical Range/Value
Body Weight Your total body mass Kilograms (kg) 30 kg – 150+ kg
Base Factor Standard fluid recommendation per unit of weight ml/kg 30 – 35 ml/kg (using 33 ml/kg in calculator)
Activity Level Multiplier Adjustment for physical exertion Unitless 1.0 (Sedentary) to 1.8 (Extra Active)
Climate Factor Adjustment for environmental conditions Unitless 1.0 (Temperate) to 1.2 (Very Hot)
Total Daily Water Intake Recommended fluid consumption per day Liters (L) or Milliliters (ml) Varies significantly based on inputs

Practical Examples (Real-World Use Cases)

Example 1: A Moderately Active Person in a Temperate Climate

Scenario: Sarah weighs 65 kg. She engages in moderate exercise 3-4 times a week and lives in a region with a temperate climate. She wants to know her daily water intake.

  • Body Weight: 65 kg
  • Activity Level: Moderately Active (Multiplier: 1.4)
  • Climate Factor: Temperate (Multiplier: 1.0)
  • Base Factor: 33 ml/kg

Calculation:

Base Intake = 65 kg * 33 ml/kg = 2145 ml

Activity Adjustment = 2145 ml * 1.4 = 3003 ml

Climate Adjustment = 3003 ml * 1.0 = 3003 ml

Total Daily Water Intake: Approximately 3003 ml, which is about 3.0 Liters.

Interpretation: Sarah should aim to consume around 3.0 liters of water daily to stay adequately hydrated, considering her weight, activity level, and climate.

Example 2: A Very Active Person in a Hot Climate

Scenario: David weighs 80 kg. He is a construction worker and exercises intensely daily. He lives in a hot and humid climate.

  • Body Weight: 80 kg
  • Activity Level: Very Active (Multiplier: 1.6)
  • Climate Factor: Hot and Humid (Multiplier: 1.1)
  • Base Factor: 33 ml/kg

Calculation:

Base Intake = 80 kg * 33 ml/kg = 2640 ml

Activity Adjustment = 2640 ml * 1.6 = 4224 ml

Climate Adjustment = 4224 ml * 1.1 = 4646.4 ml

Total Daily Water Intake: Approximately 4646 ml, which is about 4.65 Liters.

Interpretation: David has significantly higher hydration needs due to his demanding job and the climate. He should aim for nearly 4.7 liters of water daily. This highlights how environmental and lifestyle factors can drastically alter water requirements, making personalized calculation essential.

How to Use This Hydration Calculator

Our calculator is designed for simplicity and accuracy, helping you quickly determine your personalized daily water intake.

  1. Enter Your Body Weight: Input your current weight in kilograms (kg) into the "Body Weight" field.
  2. Select Your Activity Level: Choose the option from the dropdown menu that best describes your typical daily physical activity. This ranges from sedentary to extra active.
  3. Choose Your Climate Factor: Select the climate setting (Temperate, Hot and Humid, or Very Hot and Dry) that applies to your environment.
  4. Click 'Calculate': Once all fields are populated, press the "Calculate" button.

How to Read Results:

  • Primary Result: The largest number displayed is your estimated total daily water intake in Liters (L).
  • Intermediate Values: "Base Intake," "Activity Adjustment," and "Climate Adjustment" show the calculated amounts from each stage of the formula, helping you understand how each factor contributes.
  • Formula Explanation: A clear breakdown of the calculation logic is provided below the results.

Decision-Making Guidance: Use the calculated total daily water intake as your target. Spread your fluid consumption throughout the day, and pay attention to your body's signals. Remember that factors like illness, pregnancy, and breastfeeding can increase water needs beyond these general calculations. This tool provides a strong starting point for optimizing your hydration.

Key Factors That Affect Water Intake Results

While body weight is a primary determinant, several other factors significantly influence your daily water needs. Understanding these can help you fine-tune your hydration strategy:

  1. Body Weight: As established, this is the foundation. A larger body mass requires more metabolic processes, thus needing more water.
  2. Activity Level: Intense physical activity dramatically increases water loss through sweat. Athletes or those with physically demanding jobs need considerably more fluids than sedentary individuals.
  3. Climate and Environment: Living in hot or humid conditions increases sweat production, even at rest. High altitudes can also increase respiratory water loss.
  4. Diet: Foods with high water content (fruits, vegetables) contribute to your total fluid intake. Conversely, diets high in salt or protein might increase water needs.
  5. Health Status: Certain medical conditions like fever, vomiting, diarrhea, kidney stones, or urinary tract infections necessitate increased fluid intake. Conversely, conditions like heart failure or kidney disease might require fluid restriction. Always consult a healthcare provider for specific conditions.
  6. Pregnancy and Breastfeeding: These physiological states significantly increase a woman's water requirements to support fetal development and milk production.
  7. Age: While not directly in the calculator, older adults may have a diminished sense of thirst, increasing their risk of dehydration. Infants and young children also have different hydration needs relative to their body size.
  8. Medications: Some medications, like diuretics, can increase water loss and thus raise daily fluid requirements.

Frequently Asked Questions (FAQ)

Q: What's the difference between the calculator's output and just drinking when thirsty?

A: Thirst is a signal that you are already starting to dehydrate. Relying solely on thirst can lead to chronic mild dehydration, impacting energy levels and cognitive function. This calculator provides a proactive target to ensure you maintain optimal hydration throughout the day.

Q: Does "water intake" include all fluids, like coffee or juice?

A: Yes, "water intake" generally refers to total fluid intake. While pure water is ideal, other beverages like herbal teas, diluted juices, and even water-rich foods contribute to your daily total. However, caffeinated or sugary drinks should be consumed in moderation as they can have diuretic effects or contribute to excess calorie intake.

Q: How can I tell if I'm drinking enough water?

A: Besides using the calculator as a guide, common signs of adequate hydration include pale yellow or colorless urine, infrequent thirst, and good skin turgor. Dark urine, persistent thirst, dry mouth, fatigue, and headaches can indicate dehydration.

Q: Is it possible to drink too much water?

A: Yes, it is possible to experience water intoxication (hyponatremia), though it is rare for most people. This occurs when excessive water intake dilutes the sodium levels in your blood. Endurance athletes and individuals with certain medical conditions are at higher risk. Stick to the calculated recommendations unless advised otherwise by a medical professional.

Q: Should I adjust my intake based on my gender?

A: While general recommendations sometimes differ slightly by gender, body weight is a more significant factor. Our calculator focuses on body weight, activity, and climate, which are the most impactful variables for personalization.

Q: How does exercise intensity affect water needs?

A: Higher intensity exercise leads to greater sweat production and thus more significant fluid loss. The "Activity Level" multiplier in the calculator is designed to account for these increased needs, ranging from minimal for sedentary individuals to substantial for those engaged in very high-intensity training.

Q: What if I forget to drink water throughout the day?

A: It's common to forget. Try setting reminders on your phone or smart device. Carrying a reusable water bottle can also serve as a constant visual cue. Aim to drink consistently rather than trying to "catch up" at the end of the day.

Q: Can this calculator be used for children?

A: This calculator is primarily designed for adults. Children's hydration needs are different and depend more heavily on age, developmental stage, and activity. Consult pediatric health guidelines or a doctor for children's water intake recommendations.

Related Tools and Internal Resources

© 2023 Your Hydration Hub. All rights reserved.

var baseFactor = 33; // ml per kg function validateInput(id, errorId, min, max) { var input = document.getElementById(id); var errorElement = document.getElementById(errorId); var value = parseFloat(input.value); if (isNaN(value) || value <= 0) { errorElement.textContent = "Please enter a positive number."; input.style.borderColor = "red"; return false; } if (min !== null && value max) { errorElement.textContent = "Value cannot be greater than " + max + "."; input.style.borderColor = "red"; return false; } errorElement.textContent = ""; input.style.borderColor = "#ccc"; return true; } function calculateWaterIntake() { var isValidWeight = validateInput('bodyWeight', 'bodyWeightError', 1, 500); var activityLevelInput = document.getElementById('activityLevel'); var climateFactorInput = document.getElementById('climateFactor'); if (!isValidWeight) { document.getElementById('primaryResult').textContent = '– L'; document.getElementById('baseIntake').textContent = '– L'; document.getElementById('activityAdjustment').textContent = '– L'; document.getElementById('climateAdjustment').textContent = '– L'; return; } var weightKg = parseFloat(document.getElementById('bodyWeight').value); var activityMultiplier = parseFloat(activityLevelInput.value); var climateMultiplier = parseFloat(climateFactorInput.value); var baseIntakeMl = weightKg * baseFactor; var activityAdjustmentMl = baseIntakeMl * activityMultiplier; var climateAdjustmentMl = activityAdjustmentMl * climateMultiplier; var totalIntakeMl = climateAdjustmentMl; // This is the final total var baseIntakeL = (baseIntakeMl / 1000).toFixed(2); var activityAdjustmentL = (activityAdjustmentMl / 1000).toFixed(2); var climateAdjustmentL = (climateAdjustmentMl / 1000).toFixed(2); var totalIntakeL = (totalIntakeMl / 1000).toFixed(2); document.getElementById('primaryResult').textContent = totalIntakeL + ' L'; document.getElementById('baseIntake').textContent = baseIntakeL + ' L'; document.getElementById('activityAdjustment').textContent = activityAdjustmentL + ' L'; document.getElementById('climateAdjustment').textContent = climateAdjustmentL + ' L'; updateChart(activityMultiplier, climateMultiplier, weightKg); } function resetCalculator() { document.getElementById('bodyWeight').value = '70'; // Sensible default document.getElementById('activityLevel').value = '1.2'; // Lightly Active document.getElementById('climateFactor').value = '1'; // Temperate document.getElementById('bodyWeightError').textContent = "; document.getElementById('activityLevelError').textContent = "; document.getElementById('climateFactorError').textContent = "; document.getElementById('bodyWeight').style.borderColor = "#ccc"; calculateWaterIntake(); } function copyResults() { var primaryResult = document.getElementById('primaryResult').textContent; var baseIntake = document.getElementById('baseIntake').textContent; var activityAdjustment = document.getElementById('activityAdjustment').textContent; var climateAdjustment = document.getElementById('climateAdjustment').textContent; var weight = document.getElementById('bodyWeight').value; var activityText = document.getElementById('activityLevel').options[document.getElementById('activityLevel').selectedIndex].text; var climateText = document.getElementById('climateFactor').options[document.getElementById('climateFactor').selectedIndex].text; var resultText = "— Your Hydration Needs —\n"; resultText += "Total Daily Intake: " + primaryResult + "\n"; resultText += "Base Intake: " + baseIntake + "\n"; resultText += "Activity Adjustment: " + activityAdjustment + "\n"; resultText += "Climate Adjustment: " + climateAdjustment + "\n"; resultText += "\n— Key Assumptions —\n"; resultText += "Body Weight: " + weight + " kg\n"; resultText += "Activity Level: " + activityText + "\n"; resultText += "Climate Factor: " + climateText + "\n"; resultText += "Base Factor Used: " + baseFactor + " ml/kg\n"; navigator.clipboard.writeText(resultText).then(function() { alert('Results copied to clipboard!'); }, function(err) { console.error('Could not copy text: ', err); alert('Failed to copy results. Please copy manually.'); }); } // Charting Logic var myChart; // Declare globally function updateChart(activityMultiplier, climateMultiplier, weight) { var ctx = document.getElementById('hydrationChart').getContext('2d'); // Destroy previous chart instance if it exists if (myChart) { myChart.destroy(); } var baseIntakeMl = weight * baseFactor; var labels = []; var baseData = []; var adjustedData = []; var activityLevels = [ { name: "Sedentary", value: 1.0 }, { name: "Lightly Active", value: 1.2 }, { name: "Moderately Active", value: 1.4 }, { name: "Very Active", value: 1.6 }, { name: "Extra Active", value: 1.8 } ]; var climateFactors = [ { name: "Temperate", value: 1.0 }, { name: "Hot & Humid", value: 1.1 }, { name: "Very Hot & Dry", value: 1.2 } ]; // Data for the chart: Show impact of activity levels across different climates for a fixed weight var currentWeightForChart = parseFloat(document.getElementById('bodyWeight').value) || 70; // Use current weight or default activityLevels.forEach(function(activity) { labels.push(activity.name); var adjustedForActivityBase = baseIntakeMl * activity.value; var adjustedForActivityAndClimate = adjustedForActivityBase * climateMultiplier; baseData.push(baseIntakeMl / 1000); // Base intake for comparison adjustedData.push(adjustedForActivityAndClimate / 1000); }); myChart = new Chart(ctx, { type: 'bar', data: { labels: labels, datasets: [{ label: 'Base Daily Intake (L)', data: baseData.map(function(val, i) { return (i === 0) ? val : NaN; }), // Only show first bar for reference backgroundColor: 'rgba(0, 74, 153, 0.6)', // Primary color borderColor: 'rgba(0, 74, 153, 1)', borderWidth: 1, yAxisID: 'y-axis-liters', order: 2 }, { label: 'Adjusted Intake (L)', data: adjustedData, backgroundColor: 'rgba(40, 167, 69, 0.6)', // Success color borderColor: 'rgba(40, 167, 69, 1)', borderWidth: 1, yAxisID: 'y-axis-liters', order: 1 }] }, options: { responsive: true, maintainAspectRatio: false, scales: { 'y-axis-liters': { type: 'linear', position: 'left', title: { display: true, text: 'Liters (L)' }, beginAtZero: true, grid: { color: 'rgba(200, 200, 200, 0.2)' } }, x: { title: { display: true, text: 'Activity Level' } } }, plugins: { title: { display: true, text: 'Daily Water Intake (L) for ' + currentWeightForChart + 'kg in ' + climateFactors.find(c => c.value === climateMultiplier).name + ' Climate', font: { size: 16 } }, tooltip: { callbacks: { label: function(context) { var label = context.dataset.label || "; if (label) { label += ': '; } if (context.parsed.y !== null) { label += context.parsed.y.toFixed(2) + ' L'; } return label; } } } } } }); } // Initialize chart on page load window.onload = function() { resetCalculator(); // Set default values and calculate // Initial chart rendering with default values var defaultWeight = parseFloat(document.getElementById('bodyWeight').value); var defaultActivityMultiplier = parseFloat(document.getElementById('activityLevel').value); var defaultClimateMultiplier = parseFloat(document.getElementById('climateFactor').value); updateChart(defaultActivityMultiplier, defaultClimateMultiplier, defaultWeight); }; // Add event listener for FAQ toggling document.addEventListener('DOMContentLoaded', function() { var faqItems = document.querySelectorAll('.faq-item strong'); faqItems.forEach(function(item) { item.addEventListener('click', function() { var content = this.nextElementSibling; if (content.style.display === "block") { content.style.display = "none"; } else { content.style.display = "block"; } }); }); });

Leave a Comment