jQuery Tutorial Part 2

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.

$(".pane .delete").click(function(){ $(this).parents(".pane").animate({ opacity: "hide" }, "slow");

One response to “jQuery Tutorial Part 2”

Leave a Reply