// setup console.log(“running”); let q = 1; const submit = document.getElementById(“next-button”); const question = document.getElementById(“question”); // next button document.getElementById(“next-button”).addEventListener(“click”, function () { // split by q value let radioButtons = document.querySelectorAll(“input[name=’yes-no’]”); if (q == 4) { radioButtons = document.querySelectorAll(“input[name=’time-choice’]”); }…Continue reading
/******************************* CHECKOUT – ORDER RECEIVED – MY ACCOUNT – CHANGE BILLING FIELDS FUNCTIONS *******************************/ var bdiElems = Array.from(document.querySelectorAll(‘bdi’)); bdiElems.forEach(function(elem) { if (elem.textContent.includes(‘0.00’)) { elem.style.display = “none” } });Continue reading