Hurlburt Farmhouse Wood and Iron 7 Piece Dining Set, Natural, Rustic Metal, and Cream
Hurlburt Farmhouse Wood and Iron 7 Piece Dining Set, Natural, Rustic Metal, and Cream
SKU: 316508
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;
});
});