Return to Snippet

Revision: 28462
at July 8, 2010 17:29 by omerta83


Initial Code
function runAlertNow ()  
{  
    $(this).html('I just ran this function!');  
}  
  
// both of these lines do the same thing  
$('#test').slideUp(400, runAlertNow);  
$('#test').slideUp(400, function ()  
{  
	$(this).html('I just ran the anonymous function!');  
});

Initial URL


Initial Description


Initial Title
Using callbacks in jQuery

Initial Tags
javascript, jquery

Initial Language
JavaScript