Calculate Dress Size Based on Height and Weight

Calculate Dress Size: Your Personal Fit Guide :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –secondary-text-color: #555; –border-color: #dee2e6; –card-background: #ffffff; –shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } 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; } .container { max-width: 1000px; margin: 20px auto; padding: 20px; background-color: var(–card-background); box-shadow: var(–shadow); border-radius: 8px; } header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(–border-color); } h1 { color: var(–primary-color); margin-bottom: 10px; } h2, h3 { color: var(–primary-color); margin-top: 30px; margin-bottom: 15px; } .calculator-wrapper { background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-bottom: 40px; } .loan-calc-container { display: flex; flex-direction: column; gap: 20px; } .input-group { display: flex; flex-direction: column; gap: 8px; } .input-group label { font-weight: 600; color: var(–primary-color); } .input-group input[type="number"], .input-group select { padding: 12px; border: 1px solid var(–border-color); border-radius: 4px; font-size: 1rem; 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.85rem; color: var(–secondary-text-color); } .error-message { color: red; font-size: 0.8rem; margin-top: 4px; min-height: 1.2em; /* Reserve space for error message */ } .button-group { display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; } .btn { padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease; text-align: center; text-decoration: none; display: inline-block; } .btn-primary { background-color: var(–primary-color); color: white; } .btn-primary:hover { background-color: #003a7a; } .btn-secondary { background-color: #6c757d; color: white; } .btn-secondary:hover { background-color: #5a6268; } .btn-success { background-color: var(–success-color); color: white; } .btn-success:hover { background-color: #218838; } .results-wrapper { margin-top: 30px; padding: 25px; border: 1px solid var(–border-color); border-radius: 8px; background-color: #eef7ff; /* Lighter shade of primary */ text-align: center; } .results-wrapper h3 { margin-top: 0; color: var(–primary-color); } .primary-result { font-size: 2.5rem; font-weight: bold; color: var(–success-color); margin: 15px 0; padding: 15px; background-color: #d4edda; /* Light success background */ border-radius: 4px; display: inline-block; min-width: 150px; } .intermediate-results { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; } .intermediate-result-item { text-align: center; background-color: var(–card-background); padding: 15px; border-radius: 4px; border: 1px solid var(–border-color); min-width: 120px; } .intermediate-result-item .label { font-size: 0.9rem; color: var(–secondary-text-color); display: block; margin-bottom: 5px; } .intermediate-result-item .value { font-size: 1.4rem; font-weight: bold; color: var(–primary-color); } .formula-explanation { font-size: 0.9rem; color: var(–secondary-text-color); margin-top: 20px; text-align: left; border-top: 1px solid var(–border-color); padding-top: 15px; } table { width: 100%; border-collapse: collapse; margin-top: 30px; box-shadow: var(–shadow); border-radius: 4px; overflow: hidden; } th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(–border-color); } thead { background-color: var(–primary-color); color: white; } th { font-weight: 600; } tbody tr:nth-child(even) { background-color: #f2f7fc; } caption { font-size: 1.1rem; font-weight: bold; color: var(–primary-color); margin-bottom: 15px; caption-side: top; text-align: left; } #chartContainer { text-align: center; margin-top: 40px; background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); } #chartContainer h3 { margin-top: 0; } canvas { max-width: 100%; height: auto; } .article-content { margin-top: 40px; background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); } .article-content p { margin-bottom: 15px; } .article-content a { color: var(–primary-color); text-decoration: none; } .article-content a:hover { text-decoration: underline; } .faq-section { margin-top: 40px; } .faq-section .faq-item { margin-bottom: 20px; padding: 15px; border: 1px solid var(–border-color); border-radius: 4px; background-color: #fefefe; } .faq-item h4 { margin: 0 0 5px 0; color: var(–primary-color); cursor: pointer; position: relative; padding-left: 25px; } .faq-item h4::before { content: '+'; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); font-size: 1.2em; color: var(–primary-color); } .faq-item.active h4::before { content: '-'; } .faq-item .answer { display: none; margin-top: 10px; padding-left: 10px; color: var(–secondary-text-color); } .related-links-section { margin-top: 40px; background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); } .related-links-section ul { list-style: none; padding: 0; } .related-links-section li { margin-bottom: 10px; } footer { text-align: center; margin-top: 40px; padding: 20px; font-size: 0.9rem; color: var(–secondary-text-color); } @media (min-width: 600px) { .button-group { justify-content: flex-start; } .intermediate-results { justify-content: space-around; } }

Calculate Your Dress Size: Height & Weight Guide

Your essential tool for finding the perfect dress fit based on your body measurements.

Dress Size Calculator

Enter your height in centimeters (e.g., 165).
Enter your weight in kilograms (e.g., 60).
Average/Hourglass Apple (Inverted Triangle) Pear (Triangle) Rectangle
Select your general body shape for a more tailored estimate.

Your Estimated Dress Size

BMI
Size Category
Fit Recommendation
Formula Explanation: This calculator uses your height and weight to first calculate your Body Mass Index (BMI). BMI is a common indicator of body fat and weight status. A standard formula for BMI is weight (kg) / (height (m))^2. Based on the calculated BMI, body shape, and common industry sizing charts, an estimated dress size and fit recommendation are provided. The size category is a general indicator, while the fit recommendation offers advice on how the dress might drape based on your selected body shape.

Height vs. Weight Distribution by Dress Size (Sample Data)

Average/Hourglass Apple Pear Rectangle

What is Dress Size Calculation?

{primary_keyword} is the process of estimating the most appropriate clothing size, specifically for dresses, based on an individual's physical measurements, primarily height and weight. This calculation helps streamline the shopping experience, especially for online purchases where trying on garments isn't possible. It aims to bridge the gap between body dimensions and standardized clothing sizes offered by manufacturers. Understanding {primary_keyword} can significantly reduce the frustration of ill-fitting clothes and improve confidence in purchasing decisions.

Who should use it? Anyone looking to purchase a dress, particularly online shoppers, individuals whose measurements fall between standard sizes, or those trying a new brand with potentially different sizing conventions. It's also useful for gift-givers trying to select an appropriate size for someone else. Many people find their weight fluctuates, making a quick {primary_keyword} calculation helpful to ensure they are selecting the best fit for their current body.

Common Misconceptions: A common misconception is that there's a single universal dress size chart that applies to all brands and countries. In reality, sizing can vary significantly. Another misconception is that height and weight alone perfectly determine size; body shape, proportions, and fabric stretch play crucial roles. This calculator provides an *estimate* and the body shape selection attempts to account for some of these variations, but it's not a perfect science without detailed body measurements.

Dress Size Calculation Formula and Mathematical Explanation

The core of {primary_keyword} relies on calculating the Body Mass Index (BMI), a widely used metric for categorizing weight status. This BMI is then correlated with standard dress size charts, often adjusted by general body shape assumptions.

Step 1: Convert Height to Meters
The standard BMI formula requires height in meters. If height is given in centimeters (cm), it must be divided by 100.

Step 2: Calculate BMI
The formula for BMI is:

BMI = Weight (kg) / (Height (m))^2

Step 3: Determine Dress Size Category from BMI
General BMI categories are:

  • Underweight: BMI < 18.5
  • Normal weight: BMI 18.5 – 24.9
  • Overweight: BMI 25 – 29.9
  • Obesity: BMI ≥ 30

Step 4: Correlate BMI and Body Shape to Dress Size
This is where standardization becomes tricky. Different brands use different metrics. This calculator uses a simplified model that maps BMI ranges and body shapes to common dress sizes (e.g., S, M, L, or numeric sizes like 8, 10, 12). For instance, a woman with a normal BMI but a pear shape might wear a different size dress than a woman with the same BMI but an apple shape, especially concerning fit around the waist and hips. The 'Fit Recommendation' adjusts based on the selected body shape.

Variable Explanations

Variables Used in Dress Size Calculation
Variable Meaning Unit Typical Range
Height The vertical distance from the bottom of the feet to the top of the head. cm / m 140 cm – 190 cm (5'0″ – 6'3″)
Weight The measure of the mass of the body. kg 35 kg – 150 kg (77 lbs – 330 lbs)
BMI Body Mass Index, a ratio of weight to height squared. kg/m² 15 – 40+
Body Shape General description of body fat distribution and silhouette. Categorical (Average, Apple, Pear, Rectangle) N/A
Dress Size Standardized numerical or alphabetical code representing garment size. S, M, L, XL / Numeric (e.g., 4, 6, 8, 10, 12) Varies by region and brand

Practical Examples (Real-World Use Cases)

Let's illustrate {primary_keyword} with two distinct scenarios:

Example 1: Sarah, the Average Shopper

Inputs:

  • Height: 168 cm
  • Weight: 62 kg
  • Body Shape: Average/Hourglass

Calculation:

  • Height in meters: 1.68 m
  • BMI = 62 / (1.68 * 1.68) = 62 / 2.8224 ≈ 21.97
  • Size Category: Normal weight (BMI 18.5-24.9)

Outputs:

  • Estimated Dress Size: Medium (or US 8-10)
  • Fit Recommendation: A flattering fit, likely accentuating the waist.

Interpretation: Sarah falls within the healthy weight range based on her BMI. Her average/hourglass shape suggests that most standard dress styles should fit well, particularly those designed to define the waist. The calculator confirms a Medium size is appropriate.

Example 2: David, Gifting a Dress

Inputs:

  • Height: 175 cm
  • Weight: 85 kg
  • Body Shape: Apple (Inverted Triangle)

Calculation:

  • Height in meters: 1.75 m
  • BMI = 85 / (1.75 * 1.75) = 85 / 3.0625 ≈ 27.75
  • Size Category: Overweight (BMI 25-29.9)

Outputs:

  • Estimated Dress Size: Large (or US 12-14)
  • Fit Recommendation: Opt for A-line or empire waist styles to balance proportions and skim over the midsection. Avoid tight-fitting styles around the waist.

Interpretation: David's recipient has a BMI indicating they are in the overweight category. Their apple body shape means they tend to carry weight around their midsection. The calculator suggests a Large size. The fit recommendation is crucial here, advising styles that are more forgiving around the stomach area and create a more balanced silhouette, rather than just focusing on a numerical size.

How to Use This Dress Size Calculator

  1. Enter Height: Input your height accurately in centimeters (e.g., 165 cm).
  2. Enter Weight: Input your current weight in kilograms (e.g., 60 kg).
  3. Select Body Shape: Choose the option that best describes your body's general silhouette. This helps tailor the fit recommendation.
  4. Calculate: Click the "Calculate Size" button.
  5. Read Results:
    • Primary Result: This is your estimated dress size (e.g., Medium, UK 12).
    • BMI: Your calculated Body Mass Index, indicating your weight category.
    • Size Category: A general classification based on BMI (Underweight, Normal, Overweight, etc.).
    • Fit Recommendation: Advice on garment cut and style that might suit your body shape best.
  6. Use Recommendations: Use the primary size as a starting point. Pay close attention to the fit recommendation for style guidance. Remember that this is an estimate; always check the specific brand's size chart if available.
  7. Reset or Copy: Use the "Reset" button to clear fields and start over, or "Copy Results" to save or share your findings.

This tool is a guide to help you navigate the often confusing world of clothing sizes. For the most accurate fit, refer to individual brand size guides and consider consulting a personal stylist for in-depth advice on understanding your unique body proportions.

Key Factors That Affect Dress Size Results

While height and weight are primary inputs for {primary_keyword}, several other factors influence the actual fit of a dress:

  1. Body Shape Variations: Beyond the broad categories (apple, pear), individuals have unique proportions. Someone might have a larger bust but smaller hips, or vice versa, even within the same broad shape category. This affects how a dress drapes and fits in specific areas.
  2. Muscle Mass vs. Fat Mass: BMI doesn't distinguish between muscle and fat. A very muscular person might have a high BMI (classified as overweight or obese) but have a low body fat percentage and fit into smaller sizes than their BMI suggests.
  3. Fabric Composition and Stretch: A stretchy knit fabric will accommodate a wider range of body shapes and sizes than a rigid material like denim or linen. The calculator's size estimate is based on standard assumptions, but fabric properties can significantly alter the fit.
  4. Brand-Specific Sizing: As mentioned, sizing is not universal. A "Medium" in one brand might be equivalent to a "Large" in another. This is a major reason why {primary_keyword} provides an estimate, not a definitive answer. Always consult the specific brand's size chart.
  5. Dress Style and Cut: A fitted sheath dress will fit very differently from a loose A-line or a flowing maxi dress, even on the same person. Styles that cinch the waist will fit differently than those that are straight-cut. The 'Fit Recommendation' offers general guidance, but the actual dress design is paramount.
  6. International Sizing Differences: Dress sizes vary dramatically by country (e.g., US, UK, EU, AUS sizing). This calculator typically defaults to a common standard (like US/UK numeric or S/M/L), but users should be aware of potential discrepancies if shopping internationally.
  7. Manufacturer Tolerances: Slight variations in manufacturing can lead to differences even between garments of the exact same size and style.
  8. Personal Fit Preference: Some individuals prefer a very snug fit, while others like their clothes to be looser. The calculator aims for a standard fit, but personal preference may dictate sizing up or down.

Frequently Asked Questions (FAQ)

What is the most accurate way to determine dress size?

The most accurate way is to take detailed body measurements (bust, waist, hips, height) and compare them directly with the specific brand's size chart for the dress you are interested in. This calculator provides a helpful starting estimate.

Does BMI accurately determine dress size?

BMI is a general health indicator and a starting point for {primary_keyword}. It correlates well with size for many people but doesn't account for body shape, muscle density, or specific garment fit requirements.

How do different body shapes affect dress size?

Body shape significantly impacts fit. For example, someone with a pear shape might need a larger size on the bottom than the top, while an apple shape might need more room in the torso. This calculator's body shape selection helps tailor fit recommendations accordingly.

What if my height and weight put me between sizes?

This is common. Consider the dress style and fabric. If it's stretchy, either size might work, leaning towards the smaller size for a snugger fit or the larger for comfort. If the dress has less give or is fitted, choose the size that best matches your largest measurement (e.g., if hips are larger, choose the size that accommodates your hips).

Why do dress sizes vary so much between brands?

Sizing standards are not globally regulated. Brands set their own size charts based on their target demographic, design aesthetic, and manufacturing processes. This leads to inconsistencies across the market.

Can this calculator predict petite or tall sizing?

This calculator focuses on standard sizing based on height and weight ratios. It does not specifically calculate for petite (shorter proportions) or tall sizing (longer torso/limbs relative to height), which often involve adjustments in sleeve length, inseam, and torso length.

How often should I recalculate my dress size?

It's advisable to recalculate whenever your weight changes significantly, or if you notice your current clothing fit is consistently off. For most people, checking every 6-12 months or after significant life changes (like pregnancy or major fitness shifts) is sufficient.

What does the 'Fit Recommendation' mean?

The 'Fit Recommendation' provides styling advice based on your selected body shape and the calculated size. It suggests dress silhouettes or features that are likely to be most flattering and comfortable for your proportions, helping you choose styles that work best.

© 2023 Your Brand Name. All rights reserved.

Disclaimer: This calculator provides an estimated dress size based on height and weight. It is intended for informational purposes only and should not replace professional advice or specific brand size charts.

var chartInstance = null; // Global variable to hold the chart instance function calculateDressSize() { var heightCm = parseFloat(document.getElementById("heightCm").value); var weightKg = parseFloat(document.getElementById("weightKg").value); var bodyShape = document.getElementById("bodyShape").value; // Clear previous errors document.getElementById("heightCmError").textContent = ""; document.getElementById("weightKgError").textContent = ""; var isValid = true; if (isNaN(heightCm) || heightCm <= 0) { document.getElementById("heightCmError").textContent = "Please enter a valid height in cm."; isValid = false; } if (isNaN(weightKg) || weightKg <= 0) { document.getElementById("weightKgError").textContent = "Please enter a valid weight in kg."; isValid = false; } if (!isValid) { resetResults(); return; } // — Calculations — var heightM = heightCm / 100; var bmi = weightKg / (heightM * heightM); var roundedBmi = bmi.toFixed(1); var dressSize = "–"; var fitRecommendation = "–"; var sizeCategory = ""; // Determine Size Category based on BMI if (bmi = 18.5 && bmi = 25 && bmi <= 29.9) { sizeCategory = "Overweight"; } else { sizeCategory = "Obese"; } // Estimate Dress Size and Fit Recommendation based on BMI and Body Shape // These ranges are generalized and simplified for demonstration. if (bmi < 19) { dressSize = "XS (US 0-2)"; if (bodyShape === "pear") fitRecommendation = "Choose styles that add volume to the upper body or are fitted at the waist and flare out."; else if (bodyShape === "apple") fitRecommendation = "Opt for A-line or empire waist styles to skim the midsection."; else fitRecommendation = "Most styles should fit well; consider styles that define the waist."; } else if (bmi < 22) { dressSize = "S (US 4-6)"; if (bodyShape === "pear") fitRecommendation = "Fitted tops with A-line or flared skirts are often flattering."; else if (bodyShape === "apple") fitRecommendation = "Empire or wrap dresses can create a balanced silhouette."; else fitRecommendation = "Versatile fit; styles that highlight your natural waist are usually great."; } else if (bmi < 25) { dressSize = "M (US 8-10)"; if (bodyShape === "pear") fitRecommendation = "A-line dresses or styles with definition at the waist and fuller hips work well."; else if (bodyShape === "apple") fitRecommendation = "Shift dresses or styles with defined waistlines can be very flattering."; else fitRecommendation = "A standard Medium should fit well. Explore various silhouettes."; } else if (bmi < 28) { dressSize = "L (US 12-14)"; if (bodyShape === "pear") fitRecommendation = "Choose styles with proportionate volume on top or that skim over the hips."; else if (bodyShape === "apple") fitRecommendation = "Look for styles that skim the mid-section, like empire waists or well-draped fabrics."; else fitRecommendation = "Consider fabrics with some stretch or styles designed for a slightly fuller figure."; } else if (bmi < 31) { dressSize = "XL (US 16-18)"; if (bodyShape === "pear") fitRecommendation = "Styles that balance proportions, perhaps with interesting details on the top half."; else if (bodyShape === "apple") fitRecommendation = "Consider tunic styles or wrap dresses with forgiving fabric."; else fitRecommendation = "Look for comfortable, well-structured dresses; fabrics with stretch are beneficial."; } else { dressSize = "XXL+ (US 20+)"; if (bodyShape === "pear") fitRecommendation = "Focus on well-proportioned styles that don't add bulk; ensure comfortable fit around hips."; else if (bodyShape === "apple") fitRecommendation = "Empire lines and fabrics that drape beautifully are excellent choices."; else fitRecommendation = "Prioritize comfort and structure. Styles that offer definition without restriction are ideal."; } // — Display Results — document.getElementById("primaryResult").textContent = dressSize; document.getElementById("bmiValue").textContent = roundedBmi; document.getElementById("sizeCategory").textContent = sizeCategory; document.getElementById("fitRecommendation").textContent = fitRecommendation; // Update Chart updateChart(bodyShape, bmi); } function resetResults() { document.getElementById("primaryResult").textContent = "–"; document.getElementById("bmiValue").textContent = "–"; document.getElementById("sizeCategory").textContent = "–"; document.getElementById("fitRecommendation").textContent = "–"; } function resetCalculator() { document.getElementById("heightCm").value = "165"; document.getElementById("weightKg").value = "60"; document.getElementById("bodyShape").value = "average"; document.getElementById("heightCmError").textContent = ""; document.getElementById("weightKgError").textContent = ""; resetResults(); if (chartInstance) { chartInstance.destroy(); // Destroy previous chart chartInstance = null; } drawInitialChart(); // Redraw initial chart state } function copyResults() { var primaryResult = document.getElementById("primaryResult").textContent; var bmiValue = document.getElementById("bmiValue").textContent; var sizeCategory = document.getElementById("sizeCategory").textContent; var fitRecommendation = document.getElementById("fitRecommendation").textContent; var height = document.getElementById("heightCm").value; var weight = document.getElementById("weightKg").value; var bodyShape = document.getElementById("bodyShape").options[document.getElementById("bodyShape").selectedIndex].text; if (primaryResult === "–") { alert("No results to copy yet. Please calculate first."); return; } var textToCopy = "— Dress Size Estimate —" + "\nHeight: " + height + " cm" + "\nWeight: " + weight + " kg" + "\nBody Shape: " + bodyShape + "\n\nEstimated Dress Size: " + primaryResult + "\nBMI: " + bmiValue + " (" + sizeCategory + ")" + "\nFit Recommendation: " + fitRecommendation + "\n\nDisclaimer: This is an estimate. Always consult brand-specific size charts."; navigator.clipboard.writeText(textToCopy).then(function() { alert("Results copied to clipboard!"); }).catch(function(err) { console.error("Failed to copy text: ", err); prompt("Copy this text manually:", textToCopy); }); } function toggleFaq(element) { var parent = element.parentElement; parent.classList.toggle('active'); } // — Chart Logic — function drawInitialChart() { var ctx = document.getElementById("sizeChart").getContext("2d"); // Clear previous chart if it exists if (chartInstance) { chartInstance.destroy(); } chartInstance = new Chart(ctx, { type: 'scatter', data: { datasets: [ { label: 'Average/Hourglass', data: [], // Initially empty backgroundColor: 'rgba(0, 74, 153, 0.7)', // Primary color borderColor: 'rgba(0, 74, 153, 1)', pointRadius: 5, pointHoverRadius: 8 }, { label: 'Apple', data: [], // Initially empty backgroundColor: 'rgba(255, 193, 7, 0.7)', // Warning color borderColor: 'rgba(255, 193, 7, 1)', pointRadius: 5, pointHoverRadius: 8 }, { label: 'Pear', data: [], // Initially empty backgroundColor: 'rgba(23, 162, 184, 0.7)', // Info color borderColor: 'rgba(23, 162, 184, 1)', pointRadius: 5, pointHoverRadius: 8 }, { label: 'Rectangle', data: [], // Initially empty backgroundColor: 'rgba(111, 66, 193, 0.7)', // Purple color borderColor: 'rgba(111, 66, 193, 1)', pointRadius: 5, pointHoverRadius: 8 } ] }, options: { responsive: true, maintainAspectRatio: false, scales: { x: { type: 'linear', position: 'bottom', title: { display: true, text: 'Height (cm)' }, min: 140, max: 190 }, y: { title: { display: true, text: 'Weight (kg)' }, min: 35, max: 150 } }, plugins: { tooltip: { callbacks: { label: function(context) { var label = context.dataset.label || ''; if (label) { label += ': '; } if (context.parsed.x) { label += 'Height: ' + context.parsed.x + ' cm, '; } if (context.parsed.y) { label += 'Weight: ' + context.parsed.y + ' kg'; } return label; } } } } } }); } function updateChart(currentBodyShape, currentBmi) { // Add a sample point to the chart based on current inputs var heightCm = parseFloat(document.getElementById("heightCm").value); var weightKg = parseFloat(document.getElementById("weightKg").value); var datasetIndex = 0; // Default to Average/Hourglass if (currentBodyShape === "apple") datasetIndex = 1; else if (currentBodyShape === "pear") datasetIndex = 2; else if (currentBodyShape === "rectangle") datasetIndex = 3; if (chartInstance) { var newPoint = { x: heightCm, y: weightKg }; chartInstance.data.datasets[datasetIndex].data.push(newPoint); chartInstance.update(); } } // Initialize chart on page load window.onload = function() { drawInitialChart(); // Calculate initial values if inputs are pre-filled if (document.getElementById("heightCm").value && document.getElementById("weightKg").value) { calculateDressSize(); } };

Leave a Comment