-
Posts
635 -
Joined
-
Last visited
-
Days Won
35
Jan's Achievements
Single Status Update
-
Hi Jan,
Could use your help
Im trying to change the text of a label.
script below doesnt work.
I can get the id , but unable to replace the text.
What am I doing wrong?
Ive also loaded it onLoad , so that the html loads before the script,
but it doesnt work
Thanks !!
var label=document.getElementsByTagName('input')[0].id;
alert("label value=" +label);
document.getElementById('label').innerText = 'Change The Label Text';