getElementByID().parentNode is returning null
For some reason, this is happening very vaguely. Its working sometimes and sometimes it is not. The same line of code, for the different "myid" under same parent, the line - document.getElementById("myid").parentNode is returning null. I am quite sure that element "myid" is not a root element and its parent is a DIV which needs to be r...