so the alerts you did are what you expected? ... then please post what the following alert says when you want to remove a node:
[CODE=javascript]function removediv(){
var divno = document.getEle mentById('count ').value;
var d = document.getEle mentById('txtHi nt'+0);
alert(d.innerHT ML);
var divname ='txtHint'+divn o;
var olddiv =document.getEl ementById(divna me);
d.removeChild(o lddiv);
}[/CODE]
hey gits just when i posted the last reply i saw the main error which is in the very first line see the id of the div :D it is "txthint1 not txtHint1 :D man that was very common but irritating mistake and was occurin in the mozilla because mozilla is case sensitive and explorer is not thats why it was deleting in the IE but not mozilla thanks to you gits you made a goooood ALERT() cheers many thanks
regards,
omer
[HTML]<div id="txthint1">< td class="tdTitle" align="left" width="600">
[/HTML]
so i assume now you want to remove that div? but as we see the id="txthint1' and not txtHint1 as you try to refer in your remove function?
kind regards
:D yeah i just got late poting the reply but i also saw the error and mentioned in my post any ways thanks aloots Gits
You are the MAN ;)
regards,
omer
that was very common but irritating mistake and was occurin in the mozilla because mozilla is case sensitive and explorer is not thats why it was deleting in the IE but not mozilla
That's shoddy by IE. JavaScript is case-sensitive, not case-insensitive like VB.
Comment