i have a \"ul\" that contains lots of \"li\" (several hundred), the ul has a fixed hight of about 400px and the css property overflow:scroll, each li has the height of 40px
You need to do something like this:
$('#yourUL').scrollTop($('#yourUL li:nth-child(14)').position().top);
If you want to animate it, do
$('#yourUL').animate({ scrollTop: $('#yourUL li:nth-child(14)').position().top }, 'slow');
Obviously adjust 14 for different lis.
14
li