Epicmanagement
asked on
JavaScript syntax to change the text of a label ? document.getElementById('ControlName').text = 'hello' ??;
JavaScript. ASP.NET, VB.NET. .NET 2.0
How can I use JavaScript to change the text of a label ?
I need to know the syntax. Something like this:
document.getElementById('C ontrolName ').value = 'HelloWorld';
But .value doesn't work. I've tried .text also. Any ideas ?
How can I use JavaScript to change the text of a label ?
I need to know the syntax. Something like this:
document.getElementById('C
But .value doesn't work. I've tried .text also. Any ideas ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
document.getElementById('C ontrolName ').innerTe xt='HelloW orld';
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.