Menu
Hello, I am trying to get the value(34.88) of a span in a CSS ussing javascript. I tried using getElementById with and without innerHtml but all that returns is null. Below is an example using the getElementById.
var s1 = document.getElementById(‘product”);
alert(s1);
I also tried the example with innerHtml and got nothing returned.
var s1 = document.getElementById(‘yfs_l10_palm’).innerHtml;
alert(s2);
Thanks