Answers for "how to create table 5 column wise in in html and append it in qury selector and remove it"

0

how to create table 5 column wise in in html and append it in qury selector and remove it

mybody = document.getElementsByTagName("body")[0];
mytable = mybody.getElementsByTagName("table")[0];
mytablebody = mytable.getElementsByTagName("tbody")[0];
myrow = mytablebody.getElementsByTagName("tr")[1];
mycel = myrow.getElementsByTagName("td")[1];

// first item element of the childNodes list of mycel
myceltext=mycel.childNodes[0];

// content of currenttext is the data content of myceltext
currenttext=document.createTextNode(myceltext.data);
mybody.appendChild(currenttext);
Posted by: Guest on April-11-2022

Code answers related to "how to create table 5 column wise in in html and append it in qury selector and remove it"

Browse Popular Code Answers by Language