i have link <a id='id'>text1</a>
<a id='id'>text1</a>
how can i set <a id='id'>text2</a> ?
<a id='id'>text2</a>
.text() method is there in jquery to set the text value.
.text()
check this : http://api.jquery.com/text/
$("#id").text("text2");