Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4540 Vistas

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 

Avatar
Descartar
Autor Mejor respuesta

I solved it by

$(".o_content").scrollTop(300);
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
4957
0
mar 15
5022
2
may 25
3743
0
sept 24
1131
0
jun 24
1223