[jQuery] Passing parameters to callback functions
Is i possible to pass arguments to callback functions right now I
have:
$(".imagethumb").each(function() {
$(this).bind( \'click\', function() {
var $id = $(this)[0].id;
$("#prodimage").fadeOut("slow",
function($id) {
$("#prodimage")[0].src = $("#" + id ).attr( \'fullsize
\' );
$("#prodimage").fadeIn("slow");
});
}
);
});
When it gets to the callback function for fadeOut $id is null. How do
I fix this??