I have a Div. I would like to hide it after 10 seconds then show it after 30 seconds then hide it again after 10sec and so on.
I have this code but it doesn't work the way I had imagined it.
setTimeout(function() {
$("#myDiv").hide();
setTimeout(function() {
$("#myDiv").show();
},30000);
},10000);
Any advice?