Search code examples
jqueryhrefhyperlink

jQuery href link


I have a link <a id='id'>text1</a>.

How can I set <a id='id'>text2</a> using jQuery?


Solution

  • $("#id").text("text2");