Checking if a div exists is fairly simple
if(document.getif(document.getElementById('if')){
}
But how can I check if a div with the given id does not exist?
See Question&Answers more detail:osChecking if a div exists is fairly simple
if(document.getif(document.getElementById('if')){
}
But how can I check if a div with the given id does not exist?
See Question&Answers more detail:os