I'm not familiar with .next(), but i'm not seeing the element getting removed, maybe you could check this again.