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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:13:45+00:00 2026-05-25T15:13:45+00:00

@roXon solved this. See his response below should you be interested in using this.

  • 0

@roXon solved this. See his response below should you be interested in using this.

I’m using the jquery’s ‘tabs’ plus a ‘read more’ functionality for each of my articles, but the read more is not functioning as it should. The ‘read more’ is not extending to each of my articles, it’s only working on the first (top) article.

Demo: http://fiddle.jshell.net/evanmoore/yNC9G/1/show/

Fiddle: http://jsfiddle.net/evanmoore/yNC9G/1/

  • 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-25T15:13:46+00:00Added an answer on May 25, 2026 at 3:13 pm

    DEMO

    used:

    $(this).parent().prev('.wrap').animate({

    You had an extra comma and some little errors.

    What have I done to make it work:
    on top I created an each method for your .wrap – to store into .data() each .wrap height.

    $(function(){
        $('#postsBig .wrap').each(function(){
            var wraph = $(this).height();
            $(this).data('h',wraph);
        });
    });
    

    Than I isolated the script if that checks if the .wrap need to have the ‘footer’ read more.

    $('.wrap').each(function(){
        var wrap = $(this);
        var wraph = wrap.data('h');
        if(wraph >= slideHeight){
            wrap.height(slideHeight);
            wrap.next('.read-more').append('<a href="#">Click to Read More</a>');
        }
    });
    

    Than I just edited a bit your codes to get the good element to trigger and the search for the proper .data height for the right .wrap element:

    $('.read-more a').click(function(){
        var defHeight = $(this).parent().prev('.wrap').data('h');
        var curHeight = $(this).parent().prev('.wrap').height();
        if(curHeight <= slideHeight){
            $(this).parent().prev('.wrap').animate({
              height: defHeight
            }, 500);
            $(this).html('Close');
        }else{
            $(this).parent().prev('.wrap').animate({
              height: slideHeight
            }, 500);
            $(this).html('Click to Read More');
        }
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been making a game using the rokonandroid game engine, but I randomly get
I'm a Flash developer looking to get into Android/iPhone game development. Android is more
Given a set of sixteen letters and an English dictionary file, need to find
I'd like to include a simple draw feature on my app. A friend told
I'm currently working in the 0.5 version of Siwapp and I'm trying to show
I have a class name ObjectSerializer. That is : public class ObjectSerializer { public
I am a beginner in Android game development, while searching i found Rokon, a

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.