Hello all,
is it possible to get an element by a dojo generated id?
Simple example, i've created a new div with the following code:
var container = dojo.byId("container ");
var mydiv = document.createElement("div");
dojo.place(mydiv, container, "last")now i want to delete this previously created div in my other widget. now i don't know what is the best way, to get the div by id. because dojo auto generates the id => "foo_bar_Widget_0".
Is there a way how i can get the element by it's auto generated id? Thanks a lot, any help is appreciated :)

A few things here.
You're getting a little confused between the actual DOM and what Dijit generates...the example you put up is pure DOM, and Dojo does *not* generate an ID for that element; it simply makes it easier to create and insert elements into the document tree.
Dijit, however, will assign an ID to any widget created.
So what you're probably looking for is dijit.byId("foo_bar_Widget_0"), which will return the Dijit instance--NOT a DOM element--from which you can find the element you're really looking for.
Hope that helps.