I wrote this jquery code to scroll down to a particular section but is not working using anchor tag as the button to click | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

I wrote this jquery code to scroll down to a particular section but is not working using anchor tag as the button to click

$(document). ready(function(){ $('html, body,').animate({scrollTop: $('.classname'). offset().top}, 1000) });

27th Aug 2018, 1:32 PM
Alao Abiodun
Alao Abiodun - avatar
1 Réponse
+ 5
Why after "body" you added ","?
29th Aug 2018, 5:25 AM
Ayhas
Ayhas - avatar