Take the 2-minute tour ×  I'm just getting started with dojo,
and I've understood that dojo.query is the same as $ in jQuery.
But I haven't figured out what it returns. Is it a specialized
object like in jQuery?  What I'm trying to do (with no luck) is:
dojo.query("output").innerHTML = data; //this doesn't work
either: //tried accessing by id as well //and tried to access a
div, incase dojo has some issues with html5 elements  And I'm
currently using the new html5 elements:  <output
id="output">Output goes here</output> <div id="divOutput">non-
html5 output goes here</div>  And I can't seem to find a good
list on what to do with objects returned by dojo.query()..
edit: Okay, I think dojo is just messing with me now. I found
this method: addContent() and that works on the above selector.
But I don't want to add content, I want to replace content...
share|improve this question add comment  6 Answers  up vote 3
down vote accepted  The query method returns a NodeList object.
In the ref for NodeList you can fi