MatBanik
MatBanik

Reputation: 26860

Get DIV Name by its ID with GWT

Lets say I have on page that runs GWT widget:

 <div name="foo" id="123"></div>

How do I retrieve the name "foo" if I want to search for it with the div's ID "123" using the widget that is running on that page?

Upvotes: 1

Views: 2092

Answers (1)

Steve Wang
Steve Wang

Reputation: 1824

DOM.getElementById("123").getAttribute("name"), I think.

Upvotes: 4

Related Questions