I am using javascript setAttribute for following to change 'lorem ipsum' to 'coming' in the following manner :
<span id="pop_title" name="pop_title" class="title01_mc10401 ff_1 fs_10 fc22 fsb">lorem ipsum</span>
Script:
function modifyDOM(){
var elem_pop = document.getElementById("pop_title");
elem_pop.setAttribute("value","coming");
}
When I inspect in firebug, its showing that the value attribute is added with coming, but its reflecting in the browser (I am using mozilla 3.0.5) What may be the issue ?? do i need to set different attribute ??