I have some script that allows a user to "like" an article. If the article is near the bottom of the page results, once the user clicks I would like the page to remain at that specific part of the page, however currently the user clicks "like" and the focus goes to the top of the page..

How do I use jquery to to focus, do i use focus() or is another approach better for what I am trying to achieve??

At the moment I am using below code, but that has the scroll effect which I don't want:

$('html, body').animate({ scrollTop: $('#idea_x_'+idea_id).offset().top }, 'fast');