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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -