I've had this a few times recently on one of my Amazon bots (everything is there when you look at the html but it doesn't exist).
To fix it I've taken to using document.getElementsByClassName("info")[0].innerHTML=""; to fix it with and using the classNames of the element which means your div will need to be
<div id="info" class="info"></div>
equally though a better approach would be
var info=document.getElementById("info");
if (info===null){
info=document.getElementsByClassName("info")[0];
}
if (info!==null){
info.innerHTML="";
}
To fix it I've taken to using document.getElementsByClassName("info")[0].innerHTML=""; to fix it with and using the classNames of the element which means your div will need to be
<div id="info" class="info"></div>
equally though a better approach would be
var info=document.getElementById("info");
if (info===null){
info=document.getElementsByClassName("info")[0];
}
if (info!==null){
info.innerHTML="";
}
Comment