I tried to use DOJO on focus out method but it is not working. I have the link to work out.
require(["dojo/on"], function(on){
on(foc, "focusout", function(e){
alert("hi");
});
});
HTML
<div id="foc" > work on focus out</div>
I tried to use DOJO on focus out method but it is not working. I have the link to work out.
require(["dojo/on"], function(on){
on(foc, "focusout", function(e){
alert("hi");
});
});
HTML
<div id="foc" > work on focus out</div>
Answered here(second answer). To focus a div
you must assign its tabindex
.