$('.SearchContent5').each(function(i) { var position = $(this).position(); console.log(position); console.log('min: ' + position.top + ' / max: ' + parseInt(position.top + $(this).height())); $('.SearchContent5').scrollspy({ min: 10, max: position.top + $(this).height(), mode: 'vertical', onTick: function(element, position) { alert(); } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)