Good morning, friends,
I'm looking for days by a "page up" function when the user clicks a button.
I only find "Add Back to Top" button options, but I do not want to add a button, I want the button to make the page go up. Type "select", and when the user selects the page goes up.
Does anyone know this type of function and can you point me to some material?
I was trying to do it this way ... haha
$document(onclick)function(){
$("[name='Selecionar']");
window.scrollTo({
top: 1000,
behavior: "smooth"
});
Now:
<script>
$(document).ready(function() {
$('.list_options.hotels .hotel_block .rooms_options > .price').click(function(event) {
event.preventDefault();
$('html, body').animate({scrollTop: 0}, 1000);
event.stopPropagation();
});
});
</script>