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

  • Home
  • SEARCH
  • 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 9166725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:13:03+00:00 2026-06-17T15:13:03+00:00

I know this is something really simple, but I can’t figure out to keep

  • 0

I know this is something really simple, but I can’t figure out to keep the page from jumping to the top when a button is pressed. I’m using some jquery to make pictures fade in and out when a button is pressed, but it makes the page jump up to the top!

I’m also using twitter bootstrap

Please view the source here and see if you can find what’s wrong I’d really appreciate it!

edit: forgot the source!!!

http://schechterbusiness.info/

  • 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-17T15:13:04+00:00Added an answer on June 17, 2026 at 3:13 pm
    • obviously click me! buttons doesn’t work and brings you to top as there is no events for them
    • assign id="fryLink", id="benderLink" attributes to buttons, not div’s

    Edit:

    I see now buttons are working, but page jumps to top so what you have to do is replace:

    ...').click(function() {
    

    to:

    ...').click(function(e) {
       e.preventDefault();
    

    And add container for img like:

    <div id="container">
       <img id="img" src="" />
    </div>
    <style> #container { height: 300px; } </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be really simple, but I can't seem to figure out what to
this should be really simple but I can just not figure it out at
I know this is probably something simple but I can't seem to find anything
This is something really simple, but I can't seem to find the answer anywhere,
I know this is a really simple thing in obj-c, but I can't seem
this may be really simple to those in the know-how, but how can i
I know SQL well but I must be missing something really dumb here. This
This is probably really simple, I know you can change css properties with javascript
ok, I know this is probably going to be something really easy but I
I think this is really simple, but I can't get my head around it.

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.