Set the value for lable use javascript

Set the value for lable use javascript

After compiled, the server control "lable" will compile to the HTML control "span", in javascript, to set it's value

using the follow code:

1document.getElementById('labe1').innerHTML = "information";

or

1document.getElementById('labe1').innerText = "information";

posted on 2007-01-12 23:58  广思  阅读(496)  评论(2编辑  收藏  举报

导航