在jQuery中更改链接的标题

我有一个id为“helpTopicAnchorId”的链接。

我想在jQuery中更改其文本。

我该怎么做呢?

 $('#helpTopicAnchorId').text('newText'); 

PS jQuery Docs可以很好地阅读

如果您指的是可用于工具提示的title属性,则可以:

 $('#helpTopicAnchorId').attr('title','new title'); 
 this.title = "your title here" 

应该这样做