the page jumps back to the top

anurag kumar July 20, 2013
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 votes
Sean Curtis
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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.

0 votes
anurag kumar July 21, 2013
yes i used your code only
0 votes
anurag kumar July 21, 2013
yes i used your code only
0 votes
Sean Curtis
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events