1Syntax
2Trigger the scroll event for the selected elements:
3$(selector).scroll()
4
5Attach a function to the scroll event:
6$(selector).scroll(function)
1$('#leave-reason-input').keyup(function() {
2 var height = $(this).scrollTop();
3 var initHeight = 5;
4 if(initHeight < height ) {
5 $(this).css({'height':'8rem'});
6 }
7})