Skip to content

Instantly share code, notes, and snippets.

@yuxel
Created July 29, 2010 12:46
Show Gist options
  • Save yuxel/498017 to your computer and use it in GitHub Desktop.
Save yuxel/498017 to your computer and use it in GitHub Desktop.
$(window).scroll(function () {
offsetTop = $("select").offset().top;
scrollTop = $(window).scrollTop();
selectsYCoordinate = offsetTop - scrollTop;
console.log(selectsYCoordinate);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment