Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4530 Widoki

Hi Odooers, I am trying to add a goto top button on Form View, 

alert($(".myclass").scrollTop());

Every Time i get 0 in return. It is not getting the position of vertical scroll. checked on different divs.

here is the screenshot https://prnt.sc/r02oev 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

I solved it by

$(".o_content").scrollTop(300);
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
4939
0
mar 15
5018
2
maj 25
3724
0
wrz 24
1128
0
cze 24
1221