开发者

Get LinkButton text using javascript

How can i get the text of LinkButton in .NET using javascript?

Tried .innerHTMl, .innerText, .value...all n开发者_运维问答ot working....


document.getElementById('lnk1').innerText 

this should solve your problem, i tried it now and it works.
can you show me your code.


for server side control use ClientID.

document.getElementById('<%= lnk1.ClientID %>').innerText

works for asp.net server side controls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜