Meanda Mid Century Finished 5 Piece Wood Dining Set with Fabric Chairs
Meanda Mid Century Finished 5 Piece Wood Dining Set with Fabric Chairs
SKU: 301330
Share
0 || trident > 0;
}
if (!isIE()) return;
const hiddenInput = document.querySelector('#product-form-template--14584988106814__main input[name="id"]');
const noScriptInputWrapper = document.createElement('div');
const variantSwitcher =
document.querySelector('variant-radios[data-section="template--14584988106814__main"]') ||
document.querySelector('variant-selects[data-section="template--14584988106814__main"]');
noScriptInputWrapper.innerHTML = document.querySelector(
'.product-form__noscript-wrapper-template--14584988106814__main'
).textContent;
variantSwitcher.outerHTML = noScriptInputWrapper.outerHTML;
document.querySelector('#Variants-template--14584988106814__main').addEventListener('change', function (event) {
hiddenInput.value = event.currentTarget.value;
});
});