jQuery add text to span within a div

后端 未结 3 1862
感动是毒
感动是毒 2020-12-23 16:28

How would I do to add some text within the span like code below ?

<
3条回答
  •  Happy的楠姐
    2020-12-23 16:40

    You can use:

    $("#tagscloud span").text("Your text here");
    

    The same code will also work for the second case. You could also use:

    $("#tagscloud #WebPartCaptionWPQ2").text("Your text here");
    

提交回复
热议问题