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
Share
Post a Comment
for "Unregister/delete All Child Nodes Of A Div Tag In Dojo"
Post a Comment for "Unregister/delete All Child Nodes Of A Div Tag In Dojo"