How to change the content of the Span using jQuery?

前端 未结 1 1848
太阳男子
太阳男子 2021-02-11 12:12
ShareThis

I want to change \"Share This\" to \"Share\",

please let me know the

1条回答
  •  旧时难觅i
    2021-02-11 12:40

    You can do with either:

    $('.stbuttontext').text('Share');
    

    for textual content or

    $('.stbuttontext').html('Share');
    

    for html contents.

    In your case however, the first statement should be fine :)

    0 讨论(0)
提交回复
热议问题