I want to scroll but it's didn't work. Please tell the right solution.
jQuery('body').scrollTo(500);
Asked
Active
Viewed 85 times
0

Zaheer Bashir
- 110
- 1
- 8
-
1Have you installed the jQuery library? How about the scrollTo library? – Jay Blanchard Aug 06 '19 at 11:51
-
You probably don't have the library loaded, before calling the function. – Daan Aug 06 '19 at 11:51
-
@JayBlanchard Yes! I installed the jquery-slim library. – Zaheer Bashir Aug 06 '19 at 11:56
-
@Daan maybe but let me check. – Zaheer Bashir Aug 06 '19 at 11:57
-
@Daan I replaced jquery jquery-slim.min.js file to https://code.jquery.com/jquery-3.3.1.min.js, Everything is working perfectly. Thanks – Zaheer Bashir Aug 06 '19 at 12:00
-
**jquery slim** doesn't include certain animations. https://stackoverflow.com/questions/35424053/what-are-the-differences-between-normal-and-slim-package-of-jquery – freedomn-m Aug 06 '19 at 12:13
-
Possible duplicate of [What are the differences between normal and slim package of jquery?](https://stackoverflow.com/questions/35424053/what-are-the-differences-between-normal-and-slim-package-of-jquery) – freedomn-m Aug 06 '19 at 12:13