angelorigo
2 years ago
28
1
Vue

Scroll to result list after form submit with vue

Posted 2 years ago by angelorigo

Hi

I have a form with many fields and would like to scroll to the result list, just below the form fields, after the form submission.

How can it be done with Vue ?

I try with Jquery but did not work :

    $(document).ready(function (){
        $('#form').submit(function(){
                $('html, body').animate({
                    scrollTop: $("#table-list").offset().top
                }, 1000);
            });
    });

Please sign in or create an account to participate in this conversation.