SyntaxFix
Write A Post
Hire A Developer
Questions
much simpler:
$("selector for element").get(0).scrollIntoView();
if more than one item returns in the selector, the get(0) will get only the first item.