1
2
3
4
5
6
7
8
9
10
var callbacks = $.Callbacks();
callbacks.add( fn1 );
// Outputs: foo!
callbacks.fire( "foo!" );
callbacks.add( fn2 );
// Outputs: bar!, fn2 says: bar!
callbacks.fire( "bar!" );
$("button").click(function(){
$("p").hide("slow", function(){
alert("The paragraph is now hidden");
});
});
(function ($) {
// write code here
})(jQuery);
$(document).ready(function(){
$("button").click(function(){
//First paragraph hide slowly
$("p").hide("slow", function(){
//alert display after paragraph is hide
alert("The paragraph is now hidden");
});
});