Greetings. I had difficulty writing a jquery script.
$(document).ready(function(){ $(window).scroll(function(){ var bo = $('.header').scrollTop(); $('body').append(bo); }) }) when scrolling the page displays 0, and if you write like this
$(document).ready(function(){ $(window).scroll(function(){ var bo = $(window).scrollTop(); $('body').append(bo); }) }) then everything is fine, but I need it from the element. Thank you in advance.