Is there a way to hide the element with the class .close-button
while showing another element with the ID #loading-animation
? Can jQuery conditionals help achieve this?
For example:
if ($('#loading-animation').is(':visible')) {
$('.close-button').hide();
}
The code snippet I tried didn't work as expected. How can I correctly format it?