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!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 5
Why after "body" you added ","?
29th Aug 2018, 5:25 AM
Ayhas
Ayhas - avatar