So I'm trying to get a button element from the page by the class name. But this function, as well as queryselector return undefined value. What might be the reason? Can it be because this element is a child of another element?
var checkout_btn = document.getElementsByClassName('button-submit');
console.log("INITIALIZED");
console.log(checkout_btn);
` tag.
– kosmos Dec 26 '20 at 18:24