I use to jquery’s ajax function to update a div on my page. Everything works fine, except my page is scrolled up.
I need somehow return to the updated div position. Any suggestions ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Your page shouldn’t be scrolled up when you update a DIV.
Are you sure you’re not using a link with
href='#'? Because that will scroll you to the top of the page. In that case, make sure youreturn false;in theonclickpart of the link.