After examining the code provided:
<div class='hotel_photo_select'>
Hello
</div>
<div class='itsHidden' style='display:none'>
<div class='hotel_photo_select'>
Hello
</div>
</div>
In this scenario:
$('.hotel_photo_select').fadeOut(300);
$('.itsHidden').show();
It was anticipated that both .hotel_photo_select
divs would be concealed. However, the second one remains visible upon showing the container.
Could this possibly be a jQuery deficiency? It seems logical for all elements to be hidden following fadeOut().
The best resolution might involve:
$('.hotel_photo_select').fadeOut(300, function () {
$(this).hide();
});
$('.itsHidden').show();
This approach, though effective, may lack elegance.