JavaScript IE appendChild() - Unexpected call to method or property access

后端 未结 7 896
旧巷少年郎
旧巷少年郎 2021-01-13 08:55

I have been having this problem in IE. I have two divs which I use to drag selected elements from one to another. Lets say I have a child element (also a div) in div1 and so

7条回答
  •  灰色年华
    2021-01-13 09:21

    Are you sure it isn't dying on:

    children[i].childNodes[0].name=toLocation;
    

    What are you trying to accomplish with this line?


    Seriously, try to comment it out. I don't even think it is what you think it is - isn't the right property called nodeName?

提交回复
热议问题