从Java脚本访问asp.net标签控件 [英] Access asp.net label control from Java Script
本文介绍了从Java脚本访问asp.net标签控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个标签控件.鼠标悬停时,将调用Java脚本函数.现在,我想在相同的Java脚本函数中设置相同标签控件的属性.
I have a label control. On mouse hover, a java script function is invoked. Now I want to set the property of same label control in the same java script function.
推荐答案
use
use
var thelabel=document.getElementById('<%=yourlabeID.ClientID%>');
这篇关于从Java脚本访问asp.net标签控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文