$(window).scroll(function(){
/// code here ///
})
<script>
$(document).ready(function() {
// Jquery code here ///
$('#t1').scroll(function(){
$('#d1').html("Textarea scroll started" )
//$( "#d1" ).css( "display", "inline" ).fadeOut( "slow" );
setTimeout(function() { $('#d1').html("Textarea stopped ..." ) },500);
})
////
$(window).scroll(function(){
$('#d1').html("window scroll started" )
//$( "#d1" ).css( "display", "inline" ).fadeOut( "slow" );
setTimeout(function() { $('#d1').html("window scroll stopped ..." ) },500);
})
////////
});
</script>
<textarea id=t1 name=t1 rows =5 cols=25>Line one
Line ....
Line ....
Line ....Line ...
Line ....
</textarea>
<div id=d1 class='alert alert-primary'>scroll this window</div>
Most Popular JQuery Scripts | |
1 | Two dependant list boxes |
2 | Calendar with Date Selection |
3 | Data change by Slider |
4 | Show & Hide element |