[英]Changing the title of a link in jQuery
我有一个ID为“ helpTopicAnchorId”的链接。
我想在jQuery中更改其文本。
我该怎么做呢?
$('#helpTopicAnchorId').text('newText');
PS jQuery Docs读得很好
如果您指的是可用于工具提示的title属性,则可以这样做:
$('#helpTopicAnchorId').attr('title','new title');
this.title = "your title here"
应该做
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.