When do I need to change the text inside the span element that I should use and what is the difference:
var spnDetailDisplay=document.getElementById('spnDetailDisplay'); spnDetailDisplay.innerText=sDetail;
or
var spnDetailDisplay=document.getElementById('spnDetailDisplay'); spnDetailDisplay.childNodes[0].nodeValue=sDetail;
html nodevalue innertext
pencilCake Nov 19 '09 at 0:28 2009-11-19 00:28
source share