wrote:
> I need to get information about certain fields in an HTML tag. "Field"
> may be the incorrect term, but what I mean is the information stored in
> "thing" or "widgetId" in the HTML tag below.
>
> <div dojoType="Button" thing="foo" id="bar"
> widgetId="theButton2">Grumble, grumble...</div>
These are custom attributes, if the DOM implementation exposes them then
you can get at them with getAttribute('attributeName') e.g.
var div = document.getElementById('bar');
var widgetId = div.getAttribute('widgetId');
--
Martin Honnen
http://JavaScript.FAQTs.com/