On(Dom.byId("class-name"),
This works for listening for ID changes, however is there a way to target DOM elements by class name?
Solved! Go to Solution.
On(document, On.selector(".imgs", Mouse.enter), function(){logger();});
Eventually used this, I had to import the "Mouse" and "Query" dojo kits as well.
and this will be enabled for dynamically added elements with the same class name? (.someClass) is added to the DOM tree after a button is pressed. Then can I add a "hover" listener to this element?
I see, I want to ultimately achieve a mouseover effect when the mouse hovers over a certain img tag.
On(document, On.selector(".imgs", Mouse.enter), function(){logger();});
Eventually used this, I had to import the "Mouse" and "Query" dojo kits as well.