$target.remove()
can remove the element,but now I want the process to be down with some feel animation,how to do it?
I've modified Greg's answer to suit my case, and it works. Here it is:
$("#note-items").children('.active').hide('slow', function(){ $("#note-items").children('.active').remove(); });
target.fadeOut(300, function(){ $(this).remove();});
or
$('#target_id').fadeOut(300, function(){ $(this).remove();});
Duplicate: How to "fadeOut" & "remove" a div in jQuery?