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

Use $(window).scrollTop() It'll scroll the window to the particular item.

Here is the example

 var scrollPos =  $(".focusme").offset().top;
 $(window).scrollTop(scrollPos);