How to Calculate Cbm to Chargeable Weight

How to Calculate CBM to Chargeable Weight – Shipping & Logistics Guide :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –border-color: #ccc; –input-border-color: #ced4da; –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; } .container { width: 100%; max-width: 960px; margin: 20px 0; padding: 20px; background-color: #fff; box-shadow: 0 0 15px var(–shadow-color); border-radius: 8px; display: flex; flex-direction: column; align-items: center; } h1, h2, h3 { color: var(–primary-color); text-align: center; } h1 { margin-bottom: 20px; } h2 { margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid var(–primary-color); padding-bottom: 5px; } h3 { margin-top: 20px; margin-bottom: 10px; } .calculator-wrapper { width: 100%; background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 8px var(–shadow-color); margin-bottom: 30px; } .calculator-wrapper h2 { margin-top: 0; border-bottom: none; } .input-group { margin-bottom: 20px; width: 100%; } .input-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(–primary-color); } .input-group input[type="number"], .input-group input[type="text"], .input-group select { width: calc(100% – 22px); /* Account for padding and border */ padding: 10px; border: 1px solid var(–input-border-color); border-radius: 4px; font-size: 1rem; box-sizing: border-box; } .input-group .helper-text { font-size: 0.85em; color: #6c757d; margin-top: 5px; display: block; } .error-message { color: red; font-size: 0.9em; margin-top: 5px; display: block; min-height: 1.2em; /* Reserve space to prevent layout shifts */ } .button-group { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; } .button-group button, .button-group input[type="button"] { flex: 1; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: background-color 0.3s ease; min-width: 150px; /* Ensure buttons have a decent minimum width */ } button.primary-btn { background-color: var(–primary-color); color: white; } button.primary-btn:hover { background-color: #003366; } button.secondary-btn { background-color: #6c757d; color: white; } button.secondary-btn:hover { background-color: #5a6268; } button.reset-btn { background-color: #ffc107; color: #212529; } button.reset-btn:hover { background-color: #e0a800; } .results-wrapper { width: 100%; margin-top: 30px; padding: 25px; border: 1px solid var(–border-color); border-radius: 8px; background-color: #e9ecef; } .results-wrapper h3 { margin-top: 0; color: var(–primary-color); } .main-result { font-size: 2.5rem; font-weight: bold; color: var(–success-color); background-color: #ffffff; padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 20px; box-shadow: inset 0 0 10px rgba(0, 100, 0, 0.1); } .intermediate-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; } .intermediate-results div { background-color: #fff; padding: 15px; border-radius: 5px; text-align: center; box-shadow: 0 2px 4px var(–shadow-color); } .intermediate-results div strong { display: block; font-size: 1.3rem; color: var(–primary-color); margin-bottom: 5px; } .formula-explanation { font-size: 0.95em; color: #555; margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(–border-color); } .chart-container { width: 100%; margin-top: 30px; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px var(–shadow-color); text-align: center; } .chart-container canvas { max-width: 100%; height: auto; } .chart-caption { font-size: 0.9em; color: #6c757d; margin-top: 10px; } table { width: 100%; border-collapse: collapse; margin-top: 20px; box-shadow: 0 2px 4px var(–shadow-color); } th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #dee2e6; } th { background-color: var(–primary-color); color: white; font-weight: bold; } tbody tr:nth-child(even) { background-color: #f2f2f2; } tbody tr:hover { background-color: #e9ecef; } .table-caption { font-size: 0.9em; color: #6c757d; margin-top: 10px; } .article-content { width: 100%; margin-top: 30px; padding: 30px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px var(–shadow-color); text-align: left; /* Reset text alignment for article */ } .article-content p, .article-content ul, .article-content ol { margin-bottom: 15px; font-size: 1.05rem; } .article-content ul, .article-content ol { padding-left: 20px; } .article-content li { margin-bottom: 8px; } .article-content strong { color: var(–primary-color); } .faq-item { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; } .faq-item:last-child { border-bottom: none; } .faq-question { font-weight: bold; color: var(–primary-color); cursor: pointer; display: block; margin-bottom: 5px; } .faq-answer { display: none; /* Hidden by default */ font-size: 0.95rem; color: #555; } .faq-item.open .faq-answer { display: block; } .related-tools { margin-top: 30px; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px var(–shadow-color); } .related-tools ul { list-style: none; padding: 0; } .related-tools li { margin-bottom: 10px; } .related-tools a { color: var(–primary-color); text-decoration: none; font-weight: bold; } .related-tools a:hover { text-decoration: underline; } .related-tools p { font-size: 0.9em; color: #666; margin-top: 5px; } footer { text-align: center; margin-top: 40px; padding: 20px; font-size: 0.9em; color: #777; width: 100%; } .copy-button { background-color: #17a2b8; color: white; margin-top: 10px; } .copy-button:hover { background-color: #138496; } .main-result, .intermediate-results div, .results-wrapper, .calculator-wrapper, .article-content, .chart-container, table { animation: fadeIn 0.5s ease-in-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

How to Calculate CBM to Chargeable Weight

Shipping Weight Calculator

Calculate the chargeable weight for your shipment. This is crucial for accurate freight quotes and avoiding unexpected costs.

Enter the length of your package in meters.
Enter the width of your package in meters.
Enter the height of your package in meters.
Enter the actual physical weight of your package in kilograms.
Air Freight (1 CBM = 167 kg) Sea Freight (1 CBM = 250 kg) Express Courier (1 CBM = 333 kg) Select the appropriate factor based on your shipping mode. Default is 167 kg/CBM for air freight.

Results

Formula Used: Chargeable Weight = MAX(Actual Weight, Volumetric Weight)
Volumetric Weight = (Length × Width × Height) × Conversion Factor
Volumetric Weight — kg
Volume — CBM
Comparison

Weight Comparison Over Different Conversion Factors

This chart visualizes how actual weight compares to volumetric weight across different shipping modes.

What is CBM to Chargeable Weight?

Understanding how to calculate CBM to chargeable weight is fundamental for anyone involved in international shipping, logistics, or freight forwarding. It's the metric that determines how much a shipment will cost to transport. In essence, carriers charge based on whichever is greater: the actual physical weight of a package or its volumetric (dimensional) weight. This ensures that carriers are compensated for the space that bulky, lightweight items occupy, not just their mass. Effectively managing this calculation can lead to significant cost savings and better budgeting for your shipping needs. You can use a CBM to chargeable weight calculator to simplify this process.

Who Should Use It?

This calculation is essential for:

  • Exporters and Importers: To accurately budget for shipping costs.
  • Freight Forwarders: To provide precise quotes to their clients and manage shipments efficiently.
  • E-commerce Businesses: To set realistic shipping fees for customers and manage inventory space.
  • Logistics Managers: To optimize packing and choose the most cost-effective shipping methods.
  • Anyone Shipping Goods Internationally: To avoid unexpected surcharges and ensure transparency in freight charges.

Common Misconceptions

A frequent misconception is that shipping costs are solely based on actual weight. However, volumetric weight plays a critical role, especially for lighter but larger items. Another error is using the wrong conversion factor; different shipping modes (air, sea, express) have distinct factors. It's crucial to confirm the correct factor with your carrier. Many also overlook the importance of accurate measurements, leading to discrepancies. Mastering how to calculate CBM to chargeable weight mitigates these issues.

CBM to Chargeable Weight Formula and Mathematical Explanation

The core principle behind determining chargeable weight is to compare the shipment's actual physical weight against its volumetric weight and use the higher of the two. This process ensures fairness for both the shipper and the carrier.

Step-by-Step Calculation:

  1. Calculate the Volume in Cubic Meters (CBM): Measure the length, width, and height of the package in meters and multiply them together.
  2. Calculate the Volumetric Weight: Multiply the volume (in CBM) by the appropriate conversion factor provided by the carrier.
  3. Compare Weights: Compare the calculated Volumetric Weight with the Actual Weight of the package.
  4. Determine Chargeable Weight: The Chargeable Weight is the greater of the Volumetric Weight or the Actual Weight.

Variable Explanations:

  • Length (L): The longest dimension of the package.
  • Width (W): The second-longest dimension of the package.
  • Height (H): The shortest dimension of the package.
  • Actual Weight: The true physical weight of the package, measured using a scale.
  • Volume (V): The space occupied by the package, calculated as L × W × H.
  • Conversion Factor: A standardized ratio set by carriers to convert volume into an equivalent weight. This varies by shipping mode.
  • Volumetric Weight (VW): The weight calculated based on the package's dimensions and the conversion factor.
  • Chargeable Weight (CW): The final weight used by the carrier for billing purposes, determined by the maximum of Actual Weight and Volumetric Weight.

Variables Table:

Variable Meaning Unit Typical Range / Example
Length, Width, Height Dimensions of the package Meters (m) 0.1 m to 5 m+
Actual Weight Physical weight of the package Kilograms (kg) 1 kg to 10,000 kg+
Volume Space occupied by the package Cubic Meters (CBM) Calculated value (e.g., 0.5 CBM)
Conversion Factor Carrier-specific ratio kg/CBM 167 (Air), 250 (Sea), 333 (Express)
Volumetric Weight Weight based on dimensions Kilograms (kg) Calculated value
Chargeable Weight Weight used for billing Kilograms (kg) MAX(Actual Weight, Volumetric Weight)

Practical Examples (Real-World Use Cases)

Let's illustrate how to calculate CBM to chargeable weight with practical scenarios.

Example 1: Air Freight Shipment (Bulky Item)

  • Scenario: Shipping a large, lightweight piece of furniture via air freight.
  • Inputs:
    • Length: 1.5 m
    • Width: 1.0 m
    • Height: 0.7 m
    • Actual Weight: 180 kg
    • Conversion Factor (Air Freight): 167 kg/CBM
  • Calculation:
    • Volume = 1.5 m × 1.0 m × 0.7 m = 1.05 CBM
    • Volumetric Weight = 1.05 CBM × 167 kg/CBM = 175.35 kg
    • Chargeable Weight = MAX(Actual Weight, Volumetric Weight) = MAX(180 kg, 175.35 kg)
  • Results:
    • Volume: 1.05 CBM
    • Volumetric Weight: 175.35 kg
    • Chargeable Weight: 180 kg
  • Interpretation: Even though the volumetric weight is slightly less, the actual weight is higher. The shipper will be billed for 180 kg. This demonstrates the importance of knowing both metrics.

Example 2: Sea Freight Shipment (Dense Item)

  • Scenario: Shipping a pallet of heavy electronic components via sea freight.
  • Inputs:
    • Length: 1.2 m
    • Width: 1.0 m
    • Height: 1.1 m
    • Actual Weight: 500 kg
    • Conversion Factor (Sea Freight): 250 kg/CBM
  • Calculation:
    • Volume = 1.2 m × 1.0 m × 1.1 m = 1.32 CBM
    • Volumetric Weight = 1.32 CBM × 250 kg/CBM = 330 kg
    • Chargeable Weight = MAX(Actual Weight, Volumetric Weight) = MAX(500 kg, 330 kg)
  • Results:
    • Volume: 1.32 CBM
    • Volumetric Weight: 330 kg
    • Chargeable Weight: 500 kg
  • Interpretation: The actual weight (500 kg) is significantly higher than the volumetric weight (330 kg). Therefore, the shipper will be billed based on the actual weight of 500 kg.

How to Use This CBM to Chargeable Weight Calculator

Our free online calculator simplifies the process of determining your shipment's chargeable weight. Follow these simple steps:

  1. Measure Your Package: Accurately measure the length, width, and height of your package in meters.
  2. Enter Dimensions: Input these measurements into the 'Package Length', 'Package Width', and 'Package Height' fields in the calculator.
  3. Enter Actual Weight: Input the physical weight of your package in kilograms into the 'Actual Weight' field.
  4. Select Shipping Mode: Choose the correct 'CBM to KG Conversion Factor' that corresponds to your shipping method (Air, Sea, or Express). If unsure, consult your carrier.
  5. Click 'Calculate': The calculator will instantly provide:
    • Volume: The total volume of your package in CBM.
    • Volumetric Weight: The weight calculated based on dimensions and the conversion factor.
    • Chargeable Weight: The greater of the Actual Weight or Volumetric Weight, which is what you'll be billed for.
    • Comparison: A clear indication of whether actual or volumetric weight is being used.
  6. Interpret Results: Understand which weight metric (actual or volumetric) determines your shipping cost.
  7. Reset or Copy: Use the 'Reset' button to clear the fields for a new calculation or 'Copy Results' to save the details.

This tool is invaluable for getting preliminary shipping quotes and ensuring you understand the factors affecting your logistics costs.

Key Factors That Affect CBM to Chargeable Weight Results

Several elements influence the final chargeable weight and, consequently, your shipping expenses. Understanding these is key to effective freight cost management:

  1. Shipping Mode: As highlighted, different modes (air, sea, express) use vastly different conversion factors. Air freight typically has the highest factor (e.g., 167 kg/CBM), making volumetric weight more impactful for lighter items. Sea freight has a lower factor (e.g., 250 kg/CBM), and express couriers can have very high factors (e.g., 333 kg/CBM or more).
  2. Package Dimensions: The length, width, and height directly determine the volume. Even a slight increase in any dimension can significantly increase the volume and potentially the volumetric weight. Efficient packing is crucial.
  3. Actual Weight Accuracy: Ensure your scale is calibrated and provides accurate readings. Misstating the actual weight can lead to discrepancies and potential surcharges if the carrier re-weighs and re-measures your cargo.
  4. Carrier Policies: While standard conversion factors exist, individual carriers might have slight variations or specific rules regarding how they round measurements or weights. Always verify the exact policy with your chosen provider.
  5. Consolidation vs. Individual Packages: Shipping multiple smaller items loose might result in a lower combined chargeable weight than shipping them in separate boxes if the consolidation achieves a more favorable overall volume-to-weight ratio. However, consolidating requires careful calculation.
  6. Packaging Materials: While minimizing packaging is essential for volume, ensuring adequate protection prevents damage, which can incur additional costs and delays. The balance between protection and minimizing dimensions is a key consideration in shipping optimization.
  7. Fuel Surcharges and Fees: While not directly part of the CBM-to-weight calculation, fuel surcharges are often applied as a percentage of the base freight cost, which is determined by the chargeable weight. Thus, a higher chargeable weight indirectly increases these ancillary charges.
  8. Customs Duties and Taxes: These are typically calculated based on the declared value of goods, but an accurate chargeable weight ensures the total landed cost is correctly estimated. Miscalculations could affect the declared value for duties.

Frequently Asked Questions (FAQ)

What is CBM?
CBM stands for Cubic Meter. It is a unit of volume used in shipping to measure the space a shipment occupies. It's calculated by multiplying the length, width, and height of a package in meters (m x m x m).
Why is Chargeable Weight important?
Chargeable weight is important because it's the basis on which shipping carriers (airlines, shipping lines, couriers) calculate your freight costs. They charge you for whichever weight is higher: the actual physical weight or the volumetric weight.
What is the difference between Actual Weight and Volumetric Weight?
Actual weight is the real physical weight of your package measured on a scale. Volumetric weight (or dimensional weight) is a calculated weight based on the package's dimensions (volume) and a carrier-specific conversion factor. Carriers use the greater of these two for billing.
How do I find the correct Conversion Factor?
The conversion factor varies by shipping mode and carrier. Typically: Air freight is around 167 kg/CBM, Sea freight is around 250 kg/CBM, and Express Couriers can be 333 kg/CBM or higher. Always confirm the exact factor with your specific shipping provider.
Can I use feet and pounds for calculation?
Our calculator specifically uses meters (m) for dimensions and kilograms (kg) for weight, as CBM (Cubic Meter) is the standard unit. If you have measurements in feet and pounds, you'll need to convert them to meters and kilograms first. 1 foot ≈ 0.3048 meters, 1 pound ≈ 0.453592 kg.
What if my shipment is on a pallet?
If your shipment is on a pallet, measure the total dimensions of the pallet including the goods stacked on it. Then measure its actual weight. Calculate the CBM and compare it with the actual weight using the appropriate conversion factor for your shipping mode.
How can I reduce my shipping costs based on CBM?
To reduce costs, focus on minimizing both actual weight and dimensions where possible without compromising product safety. Efficient packing, using lighter materials, and choosing the most cost-effective shipping mode based on your cargo's characteristics are key strategies. Comparing quotes from different carriers using accurate CBM calculations is also vital.
Does the conversion factor apply to LCL (Less than Container Load) shipments?
Yes, for LCL shipments, the concept of chargeable weight based on CBM and actual weight is often applied, especially when pricing is done per CBM or per tonne (whichever yields higher revenue for the carrier). The conversion factors used might align with standard sea freight rates (e.g., 250 kg/CBM or 1 tonne/CBM).
function toggleFaq(id) { var element = document.getElementById(id); element.classList.toggle('open'); }

© 2023 Your Company Name. All rights reserved.

var chartInstance = null; // Global variable to hold the chart instance function calculateWeight() { // Clear previous errors document.getElementById('lengthError').textContent = "; document.getElementById('widthError').textContent = "; document.getElementById('heightError').textContent = "; document.getElementById('actualWeightError').textContent = "; // Get input values var length = parseFloat(document.getElementById('length').value); var width = parseFloat(document.getElementById('width').value); var height = parseFloat(document.getElementById('height').value); var actualWeight = parseFloat(document.getElementById('actualWeight').value); var conversionFactor = parseFloat(document.getElementById('conversionFactor').value); // Validate inputs var isValid = true; if (isNaN(length) || length <= 0) { document.getElementById('lengthError').textContent = 'Please enter a valid positive number for length.'; isValid = false; } if (isNaN(width) || width <= 0) { document.getElementById('widthError').textContent = 'Please enter a valid positive number for width.'; isValid = false; } if (isNaN(height) || height <= 0) { document.getElementById('heightError').textContent = 'Please enter a valid positive number for height.'; isValid = false; } if (isNaN(actualWeight) || actualWeight volumetricWeight) { comparisonText = 'Actual weight is greater than volumetric weight.'; } else if (volumetricWeight > actualWeight) { comparisonText = 'Volumetric weight is greater than actual weight.'; } else { comparisonText = 'Actual weight equals volumetric weight.'; } // Display results document.getElementById('volume').textContent = volume.toFixed(3) + ' CBM'; document.getElementById('volumetricWeight').textContent = volumetricWeight.toFixed(2) + ' kg'; document.getElementById('mainResult').textContent = chargeableWeight.toFixed(2) + ' kg'; document.getElementById('comparison').textContent = comparisonText; document.getElementById('resultsWrapper').style.display = 'block'; // Update chart updateChart(actualWeight, volumetricWeight, conversionFactor); } function resetForm() { document.getElementById('length').value = "; document.getElementById('width').value = "; document.getElementById('height').value = "; document.getElementById('actualWeight').value = "; document.getElementById('conversionFactor').value = '167'; // Default to Air Freight // Clear errors document.getElementById('lengthError').textContent = "; document.getElementById('widthError').textContent = "; document.getElementById('heightError').textContent = "; document.getElementById('actualWeightError').textContent = "; // Hide results document.getElementById('resultsWrapper').style.display = 'none'; // Reset chart data if needed (or simply don't update until next calculation) if (chartInstance) { chartInstance.data.datasets[0].data = [0, 0, 0, 0]; // Reset actual weight line chartInstance.data.datasets[1].data = [0, 0, 0, 0]; // Reset volumetric weight line chartInstance.update(); } } function copyResults() { var mainResult = document.getElementById('mainResult').textContent; var volume = document.getElementById('volume').textContent; var volumetricWeight = document.getElementById('volumetricWeight').textContent; var comparison = document.getElementById('comparison').textContent; var conversionFactorSelected = document.getElementById('conversionFactor'); var selectedOptionText = conversionFactorSelected.options[conversionFactorSelected.selectedIndex].text; var resultsText = "— Shipping Weight Calculation Results —\n\n"; resultsText += "Chargeable Weight: " + mainResult + "\n"; resultsText += "Volume: " + volume + "\n"; resultsText += "Volumetric Weight: " + volumetricWeight + "\n"; resultsText += "Comparison: " + comparison + "\n\n"; resultsText += "Key Assumption:\n"; resultsText += "- Shipping Mode Factor: " + selectedOptionText + "\n"; resultsText += "- Formula: Chargeable Weight = MAX(Actual Weight, (Length x Width x Height) x Conversion Factor)\n"; // Temporarily create a textarea element to copy text var textArea = document.createElement("textarea"); textArea.value = resultsText; textArea.style.position = "fixed"; // Avoid scrolling to bottom textArea.style.left = "-9999px"; document.body.appendChild(textArea); textArea.focus(); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'Results copied successfully!' : 'Failed to copy results.'; console.log(msg); // Log to console for debugging // Optionally show a temporary notification to the user alert(msg); } catch (err) { console.error('Fallback: Oops, unable to copy', err); alert('Failed to copy results. Please copy manually.'); } document.body.removeChild(textArea); } function updateChart(actualWeight, currentVolumetricWeight, conversionFactor) { var ctx = document.getElementById('weightComparisonChart').getContext('2d'); // Define conversion factors for comparison var factors = [167, 250, 333]; var factorLabels = ['Air (167)', 'Sea (250)', 'Express (333)']; // Calculate volumetric weights for each factor based on current dimensions var currentLength = parseFloat(document.getElementById('length').value); var currentWidth = parseFloat(document.getElementById('width').value); var currentHeight = parseFloat(document.getElementById('height').value); var currentVolume = currentLength * currentWidth * currentHeight; var volumetricWeightsForChart = factors.map(function(factor) { if (currentVolume > 0) { return currentVolume * factor; } return 0; }); // If chart doesn't exist, create it if (!chartInstance) { chartInstance = new Chart(ctx, { type: 'bar', // Changed to bar for better comparison visualization data: { labels: factorLabels, datasets: [{ label: 'Actual Weight (kg)', data: [actualWeight, actualWeight, actualWeight], // Repeat actual weight for each factor backgroundColor: 'rgba(0, 74, 153, 0.6)', // Primary color borderColor: 'rgba(0, 74, 153, 1)', borderWidth: 1, type: 'line', // Display actual weight as a line fill: false, pointRadius: 5, pointHoverRadius: 7 }, { label: 'Volumetric Weight (kg)', data: volumetricWeightsForChart, backgroundColor: 'rgba(40, 167, 69, 0.6)', // Success color borderColor: 'rgba(40, 167, 69, 1)', borderWidth: 1 }] }, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: true, title: { display: true, text: 'Weight (kg)' } }, x: { title: { display: true, text: 'Shipping Mode Factor' } } }, plugins: { tooltip: { callbacks: { label: function(context) { var label = context.dataset.label || "; if (label) { label += ': '; } if (context.parsed.y !== null) { label += context.parsed.y.toFixed(2) + ' kg'; } return label; } } }, legend: { position: 'top', } } } }); } else { // If chart exists, update its data chartInstance.data.datasets[0].data = [actualWeight, actualWeight, actualWeight]; // Update actual weight chartInstance.data.datasets[1].data = volumetricWeightsForChart; // Update volumetric weights chartInstance.update(); } } // Initialize chart with placeholder data when the page loads document.addEventListener('DOMContentLoaded', function() { updateChart(0, 0, 167); // Initialize chart with zero values and default factor // Add click listener for FAQ toggles var faqQuestions = document.querySelectorAll('.faq-question'); faqQuestions.forEach(function(question) { question.addEventListener('click', function() { var faqItem = this.parentElement; faqItem.classList.toggle('open'); }); }); });

Leave a Comment