var maxh = $("#myList ul").height(); $("#myList ul li").filter(function () { return $(this).position().top + $(this).height() < maxh; });
This will select all li that will be fully visible. If a li partially cut off, it will be filtered.
If you want even partially visible li not to be filtered out, just remove the height addition (or create your own slice in any way).
http://jsfiddle.net/ExplosionPIlls/z6GXA/
source share