Skip to content Skip to sidebar Skip to footer

Unregister/delete All Child Nodes Of A Div Tag In Dojo

I have a div tag, lets say 'mydivTag' It has a child node under it with an ID of 'childID' I want to delete/unregister/whatever 'childID' and then recreate a different node with th

Solution 1:

have you tried something like

dojo.query("#childID", mydivTag).orphan()

then

dojo.create("div", {id: "childID"}, mydivTag)

These are just shorthand for DOM APIs like removeChild and createElement

Post a Comment for "Unregister/delete All Child Nodes Of A Div Tag In Dojo"