Vmusic
02-25-2006, 10:37 PM
Hi,
I have a javascript that adds a table to a div with an onClick event. The script works fine.... but I also want it remove the table, and then refresh the div
The refresh doesn't work - you can still see the table
What's the right way to make it so after you do the removeChild -the table doesn't show
Thanks
Vmusic
else ///else the person unChecked the check box
{
alert('The check box IS NOW unchecked');
curDiv = document.getElementById(divID);
var tbl_toRemove = document.getElementById('25Glory');
curDiv.removeChild(tbl_toRemove);
curDiv.refresh();
}
I have a javascript that adds a table to a div with an onClick event. The script works fine.... but I also want it remove the table, and then refresh the div
The refresh doesn't work - you can still see the table
What's the right way to make it so after you do the removeChild -the table doesn't show
Thanks
Vmusic
else ///else the person unChecked the check box
{
alert('The check box IS NOW unchecked');
curDiv = document.getElementById(divID);
var tbl_toRemove = document.getElementById('25Glory');
curDiv.removeChild(tbl_toRemove);
curDiv.refresh();
}