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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:54:09+00:00 2026-06-16T08:54:09+00:00

I am getting next page on my wordpress blog using jquery, finding the desired

  • 0

I am getting next page on my wordpress blog using jquery, finding the desired div and appending it to the existing one. This part works without a problem. But, what I need to do is, to add slideDown animation to it.
This is how my working code so far looks like:

$.get(next_page, function(data) {
    var response = $(data);
    var more_div = $(response).find('.FeaturedRow1').html();
    $('.FeaturedRow1').append(more_div).slideDown('slow');
    $('.navigation').not(':last').hide();

I tried adding hide() to response, more_div as well as append lines. In the first case, I get error stating that it cannot set property display of undefined.
In the second case, in the console it display HTML and says “has no method hide”. I also tried adding a line $(more_div).hide() but again, I get the error “Uncaught TypeError: Cannot set property ‘display’ of undefined”.
If I use hide in the 3rd line

$('.FeaturedRow1').hide().append(more_div).slideDown('slow');

it hides the whole FeaturedRow1 div and animates it, that takes me to the top of the div, which is what I don’t want.

EDIT: Here’s the important HTML structure and jQuery code for the desired section

<div class="FeaturedRow1">
  <div class="postspage">
    //list of posts here
  </div>
  <div class="navigation">
    <span class="loadless">
      //hyperlink to previous page
    </span>
    <span class="loadmore">
      //hyperlink to next page
    </span>
  </div>
</div>

When you click on the hyperlink inside the loadmore, the following jQuery code gets called

$('.loadmore a').live('click', function(e) {
    e.preventDefault();
    var next_page = $(this).attr('href');
    $.get(next_page, function(data) {
        var $response = $(data);
        var $more_div = $response.find('.FeaturedRow1').hide();
        $more_div.appendTo('.FeaturedRow1').delay(100).slideDown('slow')
        $('.navigation').not(':last').hide();
    });
});
$('.loadless').live('click', function(e) {
    e.preventDefault();
    if ($('.postpage').length != 1) {
        $('.postpage').last().remove();
    } 
    $('.navigation').last().remove();
    $('.navigation').last().show();
});
  • 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-16T08:54:10+00:00Added an answer on June 16, 2026 at 8:54 am

    You get error as you are using html method which returns a string not a jQuery object, try the following.

    var $response = $(data);
    var $more_div = $response.find('.FeaturedRow1').hide();
    $more_div.appendTo('.FeaturedRow1').delay(100).slideDown('slow');
    //$('.navigation').not(':last').hide();
    

    Update:

    $.get(next_page, function(data) {
        var $response = $(data);
        var more_div = $response.find('.FeaturedRow1').html();
        $('<div/>').hide()
                   .append(more_div)
                   .appendTo('.FeaturedRow1')
                   .delay(100)
                   .slideDown('slow')
        $('.navigation').not(':last').hide();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On the query below I keep getting this error: Cannot read the next data
I'm trying to compile the next code, but I'm getting this error on the
I am working on pdf reader app.i am using gestures for rendering next page
I have images which I am using to navigate to next page using href:-
Using Django Reddit Style Voting Tutorial , and getting this error. Building a Q&A
Currently using HtmlUnit. Getting first login page is no problem, succesfully logging in, getting
I am using Jquery to paginate some divs on my page. At the moment
i'm trying to create options for my next wordpress theme but in this theme
Hi I'm getting nullpointerexception at rs.next() or rs.getString(1) it is really weird that sometimes
My code is getting the following error: free(): invalid next size (fast) My code:

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.