How to change the content of the Span using jQuery?

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 🙂

Leave a Comment