Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5843783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:12:08+00:00 2026-05-22T12:12:08+00:00

I am looking to change the content of this span tag: <span class=ui-btn-text id=btnText>Read

  • 0

I am looking to change the content of this span tag:

<span class="ui-btn-text" id="btnText">Read how we have helped</span>

To:

<span class="ui-btn-text" id="btnText">Hide Story</span>

This is what I got so far:

$('#storyBtn').click(function() {
        $('#story-body').slideToggle('fast', function() {
            $('#btnTextShow').hide();
            $('#btnTextHide').show();
        });
    });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:12:09+00:00Added an answer on May 22, 2026 at 12:12 pm

    Here is a great example on how to achieve this:
    First look at the JSFiddle DEMO

    Let’s see what we have here:

    $('.ui-btn-text:eq(1)').hide();
    
    $('#storyBtn').click(function() {
        $("#story-body").slideToggle(400);
        $(".ui-btn-text").toggle(300);
    });
    

    And the html:

    <div id="storyBtn">
        <span class="ui-btn-text">Read how we have helped</span>
        <span class="ui-btn-text">Hide Story</span>
    </div>
    
    <div id="story-body">
        A long,...<br> long time ago...
    </div>
    

    INFO:

    As you can see I simplified and removed all the unnecessary ID’s and codes JUST TO MAKE VISIBLE HOW SIMPLE CAN ALL BE. You can redo this changes of mine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a way to have jquery automatically change the content of a
I am looking to change min-height attribute of textwidget class, to adjust the height
Is it possible to change the default text (something like looking for other iPhones
I have scoured the internet looking for a solution to this and I am
Am only looking to play some flash content on my page. found this code
i am looking for a method to change the content of the fancybox. I
Hey I am looking to change my a plugin that I created to use
I'm looking for a way to change the hostname and IP address of a
I am looking for a way to change the password of a local user
I am looking for a way to change the value of the DisplayName attribute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.