jQuery scrollTop()The jQuery scrollTop method is used to set or return the vertical scrollbar position for the selected element. When the scrollbar is on the top, it specifies the position 0.
Syntax: To return vertical scrollbar position: Parameters of jQuery scrollTop() method
Example of jQuery scrollTop() methodLet's take an example to demonstrate the jQuery scrollTop() method. Test it NowAnother example of jQuery scrollTop()Test it Now
Next TopicjQuery attr()
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week