Is it possible to scroll to a specific location on the page using jQuery?
The location I want to scroll must have:
<a name="#123">here</a>
Or can you simply pass a specific DOM ID?
Is it possible to scroll to a specific location on the page using jQuery?
The location I want to scroll must have:
<a name="#123">here</a>
Or can you simply pass a specific DOM ID?
Try this:
$("#botao").on('click',function() {
$('html, body').animate({
'scrollTop' : $("#div_para_scrollar").position().top
});
});