I have multiple fadeouts happening at the same time on various Ids, Is there any way of setting this up in one line as example:
This:
$("#bottle").on('click', function() {
$("#container_inner01").fadeIn(1100);
$("#container_inner02").fadeOut(1100);
$("#container_inner03").fadeOut(1100);
$("#container_inner04").fadeOut(1100);
$("#container02").fadeOut(1100);
})
turned it to this:
$("#bottle").on('click', function() {
$("#container_inner01").fadeIn(1100);
$("#container_inner02,#container_inner02,#container_inner03,#container_inner04,#container02").fadeOut(1100);
})
I am sure its possible and its some syntax error I am doing.
)at the very end, in both examples. Any errors showing up in the JS console?