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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:03:23+00:00 2026-05-16T04:03:23+00:00

When the user clicks a certain button at the bottom of the site I

  • 0

When the user clicks a certain button at the bottom of the site I am working on, it expands into a comment form. If there is a lot of other content on the page, the comment form will expand below the fold and the user might not notice that it has appeared.

I would like to scroll the page down as the comment form expands to draw the user’s attention to it. I looked at this question, but the solution doesn’t work because my form animates as it expands, so the scrolling stops with only the top of the form visible. Also, jumping around looks ugly.

Here is my current code.

$("#show").click(function() {
    if (!$("#change-form").is(":visible")) {
        $("#change-form").show("blind",{},500);
        $(document).animate({scrollTop: $(document).height()}, 1000);
    }
    return false;
});

The $(document).animate line is very similar to what I’ve found in the jQuery documentation, but the page doesn’t scroll at all. I’ve tested this in Chrome 5.0.375.125 and Firefox 3.6.8 with no success, although I’ve read that $(document) is supposed to work in both browsers. Why won’t the page scroll?

  • 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-16T04:03:23+00:00Added an answer on May 16, 2026 at 4:03 am

    Have you tried scrollTo? http://plugins.jquery.com/project/ScrollTo

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

Sidebar

Related Questions

When a user clicks a submit button I want the form to be submitted.
I'm trying to resize my MapView when a user clicks a certain button (ie
Details: Only disable after user clicks the submit button, but before the posting back
When the user clicks a button, I want his browser to automatically scroll to
As soon as the user clicks the delete button my jQuery script asks the
In Visual C#, how can I detect if the user clicks the X button
The current workflow is as follows: user clicks a button sends a Loader to
In a WPF application, when a user clicks on a button I want to
I am programatically generating mouse clicks when a user clicks a certain keyboard key
I have a page with several divs. When the user clicks a button for

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.