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 739295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:23:02+00:00 2026-05-14T08:23:02+00:00

I came across this great JQuery example of using a slidetoggle. I want to

  • 0

I came across this great JQuery example of using a slidetoggle.

I want to implement it exact as is, except for one thing.

The example uses an image for the Up and Down (white) arrow indicator.

Can’t I use the HTML ascii up arrow (↑) and down arrow (↓) instead of using an image.

If so, how?

  • 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-14T08:23:02+00:00Added an answer on May 14, 2026 at 8:23 am

    I believe something like this should work:

    $(".btn-slide").click(function(){
      $("#panel").slideToggle("slow");
      $(this).toggleClass("active");
    
      //Toggle text here (I may have the up/down order inverted)
      $(".btn-slide").toggle(function() {
          $(this).text('Slide ↑');
        }, function() {
          $(this).text('Slide ↓');
      });
      return false;
    }); 
    

    Basically the idea is just to toggle the text on the link when it is clicked, the same place the author toggles the up/down slide.

    More info on toggle() here.

    You will also need to remove the white background image from here:

    .btn-slide  {
    background:url("images/white-arrow.gif") no-repeat scroll right -50px 
    

    HTH

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

Sidebar

Related Questions

I'm working on my first JSON example in objective-c and came across this great
I came across this problem when I want to check what I input is
I came across this example class http://www.boost.org/doc/libs/1_49_0/libs/smart_ptr/sp_techniques.html#as_lock and I'm struggling with the syntax. class
I am using this IP Validation Function that I came across while browsing, it
I came across this recently and thought it would make a great SO question.
I came across a few articles like this one , which suggest that some
I've been using Jquery's datatable plugin for a while and came across an issue
I was (re)reading Joel's great article on Unicode and came across this paragraph, which
I was looking around for jQuery grid recommendations and came across this question/answers: https://stackoverflow.com/questions/159025/jquery-grid-recommendations
So I came across this bit of php code: <?php $long_url = http://example.com; $bit_ly

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.