views:

59

answers:

2
+1  Q: 

jquery href link

i have link <a id='id'>text1</a>

how can i set <a id='id'>text2</a> ?

+1  A: 

.text() method is there in jquery to set the text value.

check this : http://api.jquery.com/text/

Pranay Rana
+3  A: 
$("#id").text("text2");
Patrick Karcher