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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:58:45+00:00 2026-05-28T05:58:45+00:00

I am using Easy Pagination plugin to paginate some content. The problem is that

  • 0

I am using Easy Pagination plugin to paginate some content. The problem is that after clicking ‘next’, the browser jumps up do to the height of the element loading data for Pagination.

I am trying to fetch the height of the element, example .recent, and give it to .recent before clicking .next (Before the pagination happens), then set it after.

So I am wondering how can I set the height of .recent, and then take off?

Here is what I tried so far:

  var recentH = $('.recent').height();

 $('.next').click(function(){
      $('.recent').css( 'height', recentH );
 });
  • 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-28T05:58:46+00:00Added an answer on May 28, 2026 at 5:58 am

    I am trying to fetch the height of the element

    $.height() or $.css('height') is what you´re looking for, they both get and set values. See height() and css().

    “The difference between .css(‘height’) and .height() is that the latter returns a unit-less pixel value (for example, 400) while the former returns a value with units intact (for example, 400px)”

    before clicking .next (Before the pagination happens), then set it after.

    Are you using some plugin for the pagination and does it have it´s own click event handler for the .next element?

    Notice that your selectors matches elements by their CSS class and that there might be multiple elements. You should therefore specify the element to read the height of.

    Short example;

    $('.next').click(function(){
      var height = $('#firstElement').height();
      // Pagination actions here (toggling elements)
      $('#secondElement').css(height + 'px');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using top it's easy to identify processes that are hogging memory and cpu, but
Using the default TWebBrowser makes things easy to embed a web browser. Unfortunately the
I am using Easy Slider 1.7 - jQuery plugin and have made many modifications.
http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding I am using easy slider for banner and I called below script to
I can define church numerals fairly easy using scheme: > (define f (lambda (x)
Is there an easy way using grep (or combine with other standard command line
Is there any easy way using the api to get a count of all
Using IMDbPy it is painfully easy to access movies from the IMDB site: import
Using interfaces is a very easy way to remove dependencies, but what happens when
using Javascript, it is easy to programatically select the text inside a textarea or

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.