and instead of parents - you should be using closest('.item- container')
On May 13, 2:45 pm, hjb <ha...@heatonmoor.com> wrote: > I'll have a go: > > function removeChekbox(data) > { > $.each(data, function(i, val) > { > $('input[value="'+val+'"]').parents(".item-container").fadeTo > ("slow", 0, function() > { > $(this).slideUp(500, function() > { > $(this).remove(); > }); > }); > }); > > } > > On May 13, 11:32 am, Massimiliano Marini <m...@linuxtime.it> wrote: > > > > I have made a slight change in your code. also note you did set the > > > opacity to 0 before the slideUp that could effect your code > > > [snip] > > > > i just added a 0.5 sec delay > > > the same with your changes, the slideUp() still not working. > > > -- > > Massimiliano Marini <m...@linuxtime.it> > >