$("body").children().show(); is showing <script> tag as well
Hi I am hiding all the children of body and adding a new div for a few seconds, this is fine then a few seconds later I remove this div and use .show to show the original content when I do this it also shows the script tag and its contents. why does it show the script tag and contents this isn't a child of the body tag??? How do I stop?
//hide all elemements of body
$("body").children().hide();
//create Div here that display Names
$("body").append("<div class='info'> Welcome " + data[0] + ", " + data[1] + "will be with you shortly" + "</div>") ;
setTimeout(function(){
$(".info").remove();
$("body").children().show(); }, 4000);