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.
精彩评论