I have this code :
$('.hotel_photo_select').fadeOut(500, function () {
alert("Now all '.hotel_photo_select are hidden'");
});
and I’d like to call that alert only when ALL .hotel_photo_select are fadeOuted (so, Hidden).
How can I do it? With my code the alert is called after the first element is fadeout…
You can use the promise() method for this (the doc page has a good example for this).
Applied to your example should be something like this:
OR