How do I get following top value?
<div class="sp-scroll-handle" style="top: 1.0416666666666665px; "> </div>
this value is getting creating by some javascript, i think its following:
function dragScrollHandler( e ) {
var dragStep,
y = e.clientY - scrollBar.offset().top;
dragStep = limitWithin( Math.round( y / scrollBar.height() * ( pathList.length - 1 ) ), 0, pathList.length - 1 );
scrollToStep( snap(dragStep, STEP_SIZE) );
}
now i need this value, I tried this:
$('.sp-scroll-handle').scroll(function () {
var top_value = $('.sp-scroll-handle').css("top");
$('.settings b').text(top_value);}
});
but it does not work - any clue?