How Do I Access Childnode Of
<
Solution 1:
to change the label's text:
document.getElementsByClassName("mtb-ofr")[0].childNodes[1].nodeValue = 'something';
Solution 2:
getElementsByClassName
returns an array. You need to first get the element from the NodeList.
document.getElementsByClassName("mtb-ofr")[0].childNodes[1].nodeValue
Post a Comment for "How Do I Access Childnode Of