콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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 

아바타
취소
작성자 베스트 답변

I solved it by

$(".o_content").scrollTop(300);
아바타
취소
관련 게시물 답글 화면 활동
0
3월 15
5081
0
3월 15
5197
2
5월 25
3999
0
9월 24
1294
0
6월 24
1347