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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:46:46+00:00 2026-06-18T06:46:46+00:00

The result in jsfiddle may not work, but it does in my documents. http://jsfiddle.net/hXzrA/

  • 0

The result in jsfiddle may not work, but it does in my documents.

http://jsfiddle.net/hXzrA/

What is working is that my text is hidden, and when I click on Read More…, it reveals more of the text in the paragraph. If I click on Read More… again it collapses the text in the paragraph back to the normal state.

What I having been trying to figure out is:

  1. a mouse over the Read More…. link. Kinda like a Blue color highlight so that people know it’s mouseover.
  2. When the text is revealed, Read More… text should disappear and at the bottom of the now revealed text, should be Collapse text… (same blue highlight on mouseover). The Collapse should restore the text back to it’s collapse state.
    How do I achieve this in:

    $(document).ready(function(){
    
      var open = false;
      $('.reveal').click(function() {
        if (open) {
          $(this).animate({height:'20px'}); 
        }
        else {
          $(this).animate({height:'100%'});
        }
        open = !open;
      });
    });
    
  3. Also, if you are able to get the text to implode/explode on reveal/hide, that would be so great too. I have been trying and trying, but couldn’t get it to do that.

  • 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-18T06:46:47+00:00Added an answer on June 18, 2026 at 6:46 am

    Take a look how simplified it could be at this fiddle: http://jsfiddle.net/syEM3/

    Javascript:

    $('.reveal').click(function() {
        $(this).next().slideToggle();
    });
    

    EDIT:
    For the effect of reveal / collapse:

    $('.reveal').click(function() {
        $(this).slideUp(100).next().slideToggle();
        $(".collapse").slideDown(100);
    });
    
    $('.collapse').click(function() {
        $(this).slideUp(100).prev().slideToggle();
        $(".reveal").slideDown(100);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/nWqYL/2/embedded/result/ I've been working on fixing some issues with this prototype site. Myself and
Please have a look at this fiddle: http://jsfiddle.net/mrmartineau/53fkV/embedded/result/ The intended outcome is that when
I have the following code: http://jsfiddle.net/uRCL2/1 At the moment the result is shown in
I have the following fiddle for people to see http://jsfiddle.net/defaye/DhaHP/4/ The result on full
This fiddle works (see We Distribute under Products): http://jsfiddle.net/dgUFw/1362/ But on the page in
I'm writing a simple tooltip that can hold HTML tags. Please check http://jsfiddle.net/Qkwm8/ for
I have a jsfiddle here: http://jsfiddle.net/XM8hG/33/embedded/result/ To view code of fiddle click here: http://jsfiddle.net/XM8hG/33/
Consider this jsfiddle: http://fiddle.jshell.net/maple/JbEJN/show/ (this is the result window, in order for replaceState to
I have a page, a snippet of which is the following: http://jsfiddle.net/McZM8/2/embedded/result/ This is
jsFiddle: http://jsfiddle.net/fThMa/2/ Clicking inside the note / rend text fields and then double clicking

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.