Motherly Millenial Langot for Babies, Reusable, Ultra-Soft langot with in-built insert Nappies(Set of 5, 0-6 Months)
Description
- Fabric: Baby friendly muslin fabric.
-
USP: 4 layered langot with an extra in-built insert.
- Design: Blend of millenial convenience with traditional approach.
- Features: Strings to tie as per your baby's comfort; two loops for size adjustments; in-built insert.
- Eco-Friendly and Reusable: Washable and reusable, offering a sustainable alternative to disposable mats.
function filterVariantImages(selectedTitle) {
const allImages = document.querySelectorAll('.variant-image');
allImages.forEach(image => {
const altText = image.getAttribute('data-alt');
if (!altText || altText.trim() === selectedTitle.trim()) {
image.style.display = 'block';
} else {
image.style.display = 'none';
}
});
}
document.addEventListener("DOMContentLoaded", function() {
const variantSelect = document.querySelector('#product-selectors');
if (!variantSelect) return;
// Run once on page load
const initialText = variantSelect.options[variantSelect.selectedIndex].text.split(' - ')[0];
filterVariantImages(initialText);
// Update on change
variantSelect.addEventListener('change', function() {
const selectedText = this.options[this.selectedIndex].text.split(' - ')[0];
filterVariantImages(selectedText);
});
});