Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

determine scrollHeight using jquery?

$('#leave-reason-input').keyup(function() {
        var height = $(this).scrollTop();
        var initHeight = 5;
    if(initHeight < height ) {
          $(this).css({'height':'8rem'});
    }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #determine #scrollHeight
ADD COMMENT
Topic
Name
3+5 =