when the page loads, if the image returns a 404 not found error I would like to remove the wrapping div.item
so the carousel continues as if.. how can I achieve this?
this was my logic.. but no luck
$(window).load(function() {
$(".item img").error(function () {
$(this).parent('div.item').remove();
});
});