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

  • SEARCH
  • Home
  • 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 9327931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T05:27:29+00:00 2026-06-19T05:27:29+00:00

I just upgraded a site to 1.9.1 and the scipt below dont work anymore:

  • 0

I just upgraded a site to 1.9.1 and the scipt below dont work anymore:

Script

$(document).ready(function(){
    $("#button").toggle(function() {
        $(this).text('Hide content');
    }, function() {
        $(this).text('Show content');
    });
    $('#button').click(function(){
       $("#content_div").slideToggle("medium");
    });
});

HTML

<a href="#" id="button">Show content</a>

I am not so good at jQuery so I hope somebody can help me with this script, I´ll appreciate if a answer contains a explanation of the solution (trying to learn jQuery).

Thanks!

  • 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-06-19T05:27:30+00:00Added an answer on June 19, 2026 at 5:27 am

    I think the following gives you the full functionality that you’re looking for. It feels self-explanatory to me, but then again, I wrote it haha. So let me know if it makes sense and does what you need it to do 🙂

    $(document).ready(function(){
            $('#button').click(function(){
                var txt = "Show Content";
                if ($("#button").html()==txt)
                {
                    txt = "Hide content";
                }
                $("#button").html(txt);
    
    
                $("#content_div").slideToggle("medium");
            });
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've just upgraded our site from 1.6.X to 1.7.0.2 and encountered this problem, 99%
I just upgraded my site from ASP.NET 3.5 to 4.0. I've been working through
I just upgraded my Web Site project from 2.0 to 3.5 to take advantage
I just upgraded to MVC3 final and a part of my site that used
I need some help troubleshooting. I've just upgraded my 1.3 site to 2.0 (with
This is really confusing me, it just does not want to work. I did
I just upgraded my Rails site from Rails 2 to Rails 3.2. On my
I have just upgraded my server 2003 to serrver 2008. As I write this,
I've just recently upgraded from ABCPdf 6 to ABCPdf 8.1. I've got this webpage
This is my first time using Magento. I upgraded this site from 1.4.1.1 to

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.