jquery - Code is not working for Scroll as i want it -


I'm using jquery to get an event scroll that will put some value in my div when window scrolls The code must tell me that this is wrong and how can I run it

  $ (window) .scroll (function () {var scrps = $ (this) .scrollTop (); $ ('Feedback') .html ('your scroll position is' + scrPos);});   

Thank you in advance

missing If the response is id then use # or use its class or # . To make the selector work in your code.

  $ ('response'). Html ('your scroll position is' + scrpos);    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -