Every row has a deleteCell and insertCell method. But how do I see whether a cell exists in the first place?
(A cell may have been deleted by combining it with another cell through rowSpan, and I would like to know if my cell was deleted.)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Each
HTMLTableRowElementhas acellscollection, full ofHTMLTableDataCellElementobjects.To find out which cells are missing AFAIK you’ll need to iterate through that collection, ensuring that you read the
colSpanproperty of each entry to find out the nominal column number of the next entry.