跳至內容
選單
此問題已被標幟
1 回覆
4535 瀏覽次數

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
4954
0
3月 15
5020
2
5月 25
3742
0
9月 24
1130
0
6月 24
1222