change focus into particular div

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();
});

Leave a Comment