get current scroll height javascript
document.documentElement.scrollTop || document.body.scrollTop
get current scroll height javascript
document.documentElement.scrollTop || document.body.scrollTop
scrollheight jquery
$('#myDiv').prop('scrollHeight')
jquery scrollHeight
$('#test')[0].scrollHeight
jquery on scroll
Syntax
Trigger the scroll event for the selected elements:
$(selector).scroll()
Attach a function to the scroll event:
$(selector).scroll(function)
determine scrollHeight using jquery?
$('#leave-reason-input').keyup(function() {
var height = $(this).scrollTop();
var initHeight = 5;
if(initHeight < height ) {
$(this).css({'height':'8rem'});
}
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us