0

I tried to use DOJO on focus out method but it is not working. I have the link to work out.

Click here.

require(["dojo/on"], function(on){
  on(foc, "focusout", function(e){
  alert("hi");
  });
});

HTML

<div id="foc" > work on focus out</div>
Sathish Kumar k k
  • 1,732
  • 5
  • 26
  • 45

1 Answers1

2

Answered here(second answer). To focus a div you must assign its tabindex.

Community
  • 1
  • 1
undefined
  • 2,051
  • 3
  • 26
  • 47
  • Its working !!!. But I dont know how to use tabindex. I tried same tabindex for 2 different div and also different tabindex. But both works same. onfocusout is working for both scenario. Please Explain. – Sathish Kumar k k Sep 24 '13 at 11:15
  • 1
    [See this question](http://stackoverflow.com/questions/4112289/what-is-the-html-tabindex-attribute) – undefined Sep 24 '13 at 11:55