unable to apply jquery filter
Posted
by Pradyut Bhattacharya
on Stack Overflow
See other posts from Stack Overflow
or by Pradyut Bhattacharya
Published on 2010-03-14T13:59:33Z
Indexed on
2010/03/14
14:05 UTC
Read the original article
Hit count: 314
Hi I m un-animating a list using this code...
function unanimate_li(){
$li.filter(':last')
.animate({
height: 'hide',
opacity: 'hide'
}, 1000, function(){
unanimate_li();
});
$li = $li.not(':last');
}
I have set up the li using this code
$li = $("ol#update > li");
$li = $li.filter(':gt(4)').filter(':lt('+ size + ')');
Now when i try to do this i cannot get the 5th li(4th on zero based) to remove It removes the sixth li The example here
And when the second time i do the update it goes on to infinite loop
I cannot understand why
© Stack Overflow or respective owner