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

This widget could not be displayed.
Sean Curtis Atlassian Team Jul 21, 2013

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

This widget could not be displayed.
yes i used your code only
This widget could not be displayed.
yes i used your code only
This widget could not be displayed.
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
Community showcase
Posted 31m ago in Featured Groups

Hi! I'm Cameron Deatsch, Head of Server at Atlassian and I'm hosting an AMA next week.

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. I'll be hosting an AMA over in our Questions section of the Community next Monday, so shoot me your questions, upvote others' question...

9 views 0 1
View post

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