$(window).scroll(function(){ $('#input0').val( $(document).scrollTop() ); });
.scrollTop(value:number) 縦方向のスクロール量を取得する。
scrollTop : px