D
Don Li
Hi,
I'm under the impression that the following code would remove an
element, and I've tested it with IE7. I commented out two lines in
between for I read somewhere that claimed they are not meaninful, your
thought? Thanks.
function removeElementBy(el) {
rem = document.getElementById(el);
// if (rem.parentNode && rem.parentNode.removeChild(rem)) {
rem.parentNode.removeChild(rem);
//}
}
I'm under the impression that the following code would remove an
element, and I've tested it with IE7. I commented out two lines in
between for I read somewhere that claimed they are not meaninful, your
thought? Thanks.
function removeElementBy(el) {
rem = document.getElementById(el);
// if (rem.parentNode && rem.parentNode.removeChild(rem)) {
rem.parentNode.removeChild(rem);
//}
}