/ Published in: jQuery
jQuery - Page Component - Alert Boxes
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(".alert_box").delegate("a.close", "click", function(event) { event.preventDefault(); $(this).closest(".alert_box").fadeOut(function(event){ $(this).remove(); }); });