I'm trying to figure out how to target all siblings and fade them out, before fading in the element that's being targeted.
$('#MyDiv').siblings(':visible').not('h2').fadeOut('slow', function() {
$('#MyDiv').fadeIn('slow');
});
The :visible selector isn't working, but in theory it should, right? The issue is the complete event is being run immediately because there are some siblings that are already hidden.
This should be a simple solution for someone ... I think I've been staring at this for too long and I'm missing something simple.
OK - Maybe try a different approach? In this instance the "complete" only fires once.