开发者

jQuery href link

开发者 https://www.devze.com 2022-12-30 12:17 出处:网络
I have a link <a id=\'id\'>text1</a>开发者_运维技巧. How can I set <a id=\'id\'>text2</a> using jQuery?$(\"#id\").text(\"text2\");

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

精彩评论

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