Search code examples
javascriptasp.netlinkbutton

Get LinkButton text using javascript


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

Tried .innerHTMl, .innerText, .value...all not working....


Solution

  • document.getElementById('lnk1').innerText 
    

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