change focus into particular div

jquery

Solution

To make a div focusable, it needs to have a `tabindex` attribute.

<div id='test' tabindex='1'></div>

Then, you can focus with e.g.

$('#something').click(function() {
  $('#test').focus();
});

Problem

how can i change focus into particular div after any event via jquery?

Original source

Related problems