I have two classes:
<div class="currentWeather"></div>
<div class="weeklyWeather"></div>
I am trying to toggle between them so every 10 seconds it will show one of these classes and hide the other and so on.
setInterval(function(){
$(".currentWeather, .weeklyWeather").toggleClass("currentWeather weeklyWeather");
}, 3000);
But this just switches the class names....Is toggle not what I am looking for?