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 🙂
Related Contents:
- How to remove close button on the jQuery UI dialog?
- Click button copy to clipboard
- Slide right to left?
- What is the easiest way to disable/enable buttons and links (jQuery + Bootstrap)
- Auto-size dynamic text to fill fixed size container
- How do I auto-hide placeholder text upon focus using css or jquery?
- Play/pause HTML 5 video using JQuery
- jQuery on window resize
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery [closed]
- jQuery find element by data attribute value
- jQuery changing style of HTML element
- bootstrap 4 file input doesn’t show the file name [duplicate]
- How do you create a toggle button?
- Auto-scaling input[type=text] to width of value?
- Hide div but keep the empty space
- How do I remove the height style from a DIV using jQuery?
- Selecting only first-level elements in jquery
- Can an iframe only show a certain part of the page?
- How add spaces between Slick carousel item
- Show div on scrollDown after 800px
- How to make Bootstrap carousel slider use mobile left/right swipe
- expand/collapse table rows with JQuery
- Can I fade in a background image (CSS: background-image) with jQuery?
- Loading inline content using FancyBox
- Making radio buttons look like buttons instead
- How to make html table vertically scrollable
- Activate CSS3 animation when the content scrolls into view
- Owl Carousel, making custom navigation
- JQuery Check to See if Div is Shown [duplicate]
- How to load CSS using jquery
- get the margin size of an element with jquery [duplicate]
- jQuery append text
- Assigned width in percentage but want to get it in pixels
- Increase bootstrap dropdown menu width
- jQuery changing css class to div
- position fixed header in html
- Change the image source on rollover using jQuery
- How to disable HTML links
- HTML5 textarea placeholder not appearing
- Changing the child element’s CSS when the parent is hovered
- document .click function for touch device
- Can I use HTML tags in the options for select elements? [duplicate]
- How do I make a move up and down when I’m scrolling the page?
- Draggable div without jQuery UI
- Bind event to right mouse click
- jQuery Validation using the class instead of the name value
- How do I get the entire page’s HTML with jQuery?
- How to set “style=display:none;” using jQuery’s attr method?
- Merge values from two forms on submit
- How does jQuery implement hide() and show()