jquery - How can I prevent the webpage from scrolling back to the top when I use slideup? -
I have a webpage with many DIV elements if I use the jquery function SlideUp to hide one (page Towards the bottom of the page), the page automatically scrolls back to the top, how can I stop it?
To trigger the jquery function, I do something like this:
$ (MyLink). Click (MyDiv.slideUp ("slow");} MyLink inside MyDiv between the middle of the page
How do you trigger the jQuery function via anchors? If so, then The function returns are false, otherwise the browser will redirect the href-attribute, which will be '# "in this case.
Comments
Post a Comment