Beckstrom French Country Wood 7-Piece Expandable Dining Set
Beckstrom French Country Wood 7-Piece Expandable Dining Set
SKU: 315571
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;
});
});