开发者

jQuery href link

I have a link <a id='id'>text1</a>开发者_运维技巧.

How can I set <a id='id'>text2</a> using jQuery?


$("#id").text("text2");


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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜