[jQuery] Ultra simple question: Plugin callback
Hey there!
Consider this code:
$.fn.toggleAnim1 = function(f){
this.animate({'opacity': 'toggle', 'height': 'toggle'}, 'slow',
function() { return f; });
}
$('#success').toggleAnim1(function() {
alert('hizzzzzzzzzzzzzz');
});
Is that one way to provide callback functionality?
I would love some pro advice. :)
Thanks in advance!
Cheers,
Micky