Hey guys,
Just a small difficulty in how scrollTop works ,
I have the following HTML and css code :
CSS :
- body{
- height: 4000px;
- background: #eee;
- }
Jquery code :
- $( "html" ).scrollTop(5000);
now if i say :
- $( "body" ).scrollTop(5000);
scrollTop does't work .. Why ??
my difficulty is also listed in the fiddle :
Fiddle