Can the dojo.query function be used to lookup widgets with certain attributes?
for instance, if I want to get a list of all input widgets with type hidden. It seems to me that dojo.query only works for DOM objects and is not meant to be used with objects. Is this correct?
For instance dojo.query('input[type=hidden]') would normally work for regular HTML input fields but does not work for Dojo ones especially that they tend to be wrapped in DIVs, etc.
Thanks
You’re right.
For dijit, use dijit.registry to lookup the widgets in your page : http://dojotoolkit.org/reference-guide/dijit/registry.html