views:

195

answers:

2

I have a link with id "helpTopicAnchorId".

I want to change its text in jQuery.

How do I do this?

+10  A: 
$('#helpTopicAnchorId').text('newText');

P.S the jQuery Docs make great reading

redsquare
+1 for a link to the docs. They are quite good, and tend to answer 90% of the jquery questions in here.
ScottE
Indeed they do!
redsquare
I rely also on visualjquery.com. I saved a local version of the site (1 html page and related files) for easy ref.
Makram Saleh
My favorite documentation site for JQuery is http://visualjquery.com/
elcuco
A: 

this.title = "your title here" should do it

Abiy