Simple disappearing effect
This sample will show you how to make something disappear when an image button is clicked.(view demo)
When the X is clicked, it will find its parent element and animate its opacity=hide with slow speed.
$(document).ready(function(){ $(".pane .delete").click(function(){ $(this).parents(".pane").animate({ opacity: "hide" }, "slow"); }); });
Oh sorry i didn’t see, this is part 2. Thank you.