I have a function that fills the pages with something like this
<span id="span_title_'+result_no+'">'+title+'</span>
and then I have another function that has this:
document.getElementById("span_title_"+which_table).innerHTML="asg"; alert(document.getElementById("span_title_"+which_table).value);
It is strange that the first (innerHTML) call works fine, the second, warning, gives me " undefined "
Any idea why this is?
source share