Hi All,
I hate to ask such a basi question but is there any function or method to delete an html table? I have tried destroy(), removeChild() with no luck. I created a function that dynamically creates a table and adds rows to it. The code is called via a checkbox. I would like, if the user changes their mind and uchecks the box I would like the table to be deleted so that the data will not post to my database. This is what I have to delete but it's not working:
Thanks,
Ken
I hate to ask such a basi question but is there any function or method to delete an html table? I have tried destroy(), removeChild() with no luck. I created a function that dynamically creates a table and adds rows to it. The code is called via a checkbox. I would like, if the user changes their mind and uchecks the box I would like the table to be deleted so that the data will not post to my database. This is what I have to delete but it's not working:
JavaScript:
//if exists table entries for the div, delete them
if (dynaTable = document.getElementById("dataTable")) {
dynaTable.destroy();
}
Thanks,
Ken