How to scroll to top of a div using jQuery?

后端 未结 7 1590
耶瑟儿~
耶瑟儿~ 2020-12-23 17:43

I have a gridview inside a div.. I want to scroll to top of the div from the bottom of the div using jquery.. Any suggestion..

//
相关标签:
7条回答
  • 2020-12-23 18:12

    Or, for less code, inside your click you place:

    setTimeout(function(){ 
    
    $('#DIV_ID').scrollTop(0);
    
    }, 500);
    
    0 讨论(0)
提交回复
热议问题