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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:31:20+00:00 2026-06-10T09:31:20+00:00

I have a page that’s setup with an input text field hidden with display:

  • 0

I have a page that’s setup with an input text field hidden with “display: none” via JQuery toggle(), and an anchor tag located some distance beneath it. When I use the anchor tag, either by entering it in the url or by clicking a link referencing it, I usually expect it to take me right above where the anchor is, like this:

working as expected http://i.snag.gy/1UavI.jpg

However, when I view it on IE8, it looks something like this:

not working as expected http://i.snag.gy/dbyty.jpg

What I’d like to have is both the hidden input field there, and also correct anchor behavior.

When I remove the hidden input from the code, it fixed the spacing, which leads me to think that IE is taking the space used up by the hidden input into consideration where on the screen to scroll to for the anchor.

This was my best attempt to try and reproduce the issue on jsfiddle, but I unfortunately wasn’t successful. I can’t post the actual source code I’m seeing the error on, but I’ll try to provide any additional information I can.

http://jsfiddle.net/Xynev/4/

  • 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-10T09:31:22+00:00Added an answer on June 10, 2026 at 9:31 am

    I figured out what my problem was yesterday.

    On IE8, if you use window.location.hash to navigate to a specific area on the screen, you have to make sure to do it AFTER all your JQuery .hide() or .toggle() calls are made. What was happening was, I was navigating to the anchor tag first, and then the hide() would occur. The hide would then reduce the amount of space on the page, thereby pulling the whole page up with it.

    By simply having the page perform the hide’s before the window.location.hash, I fixed my problem. I’m not quite sure why this spacing issue didn’t happen on Firefox or Chrome though.

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

Sidebar

Related Questions

I have a page that uses another page via the include() function. The page
I have a page that has a status text label and a panel doing
I have a page that, using jQuery .ajax that is called 100 times (async:
I have page that possibly calls this line. jQuery.ajaxSetup({async:false}) In another function I would
I have a page that has multiple sliders (from http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div ) and since each
I have a page that will display one of two options for a Struts2
I have a page that builds out a table. Nothing else on that page
I have a page that lets the user edit the content of the page
I have a page that uses the Telerik RadListView control and a Telerik RadDataPager
I have a page that I want to update non stop, every few seconds.

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.