the page jumps back to the top

i have a div which i m flipping using css and jquery. Both the sides are having a submit button. The back side's submit buttn is whenever clicked the front div jumps infront without getting flipped. I hope u understand my prblm. I dont want that front div to get suddenly jump infront of the page. What to do?

4 answers

0 vote
Sean Curtis Atlassian Team Jul 21, 2013

Did you use the JS I posted in your other question Anurag?

yes i used your code only
yes i used your code only
0 vote
Sean Curtis Atlassian Team Jul 21, 2013

Well things are getting more complex now. Rather than me code all this up for you, I'd recommend you step through some of the jQuery tutorials. You will need to use stopPropagation() on the click of the button. This will prevent the click event from bubbling up the DOM and triggering the flip you added to the div.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 4 hours ago in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

20 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you