Lebar gulir jQuery
$('#test')[0].scrollWidth
Tequilian
$('#test')[0].scrollWidth
$('#test')[0].scrollHeight
$('#myDiv').prop('scrollHeight')
$('#leave-reason-input').keyup(function() {
var height = $(this).scrollTop();
var initHeight = 5;
if(initHeight < height ) {
$(this).css({'height':'8rem'});
}
})