• Resolved luciche

    (@luciche)


    I am using this script to auto scroll down to <span class=”estimat”>Estimat</span> on a table like this https://i.imgur.com/4Pmlzgp.png

    <style>
                        #sosiri {
                            height: 800px;
                            overflow-x: hidden;
                            overflow-y: scroll;
                            width: 100%;
                        }
                    </style>
    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script>
                        $(function(){
                            var container = $('div#sosiri'),
                                scrollTo = $('span.estimat');
                            
                            container.scrollTop(
                                scrollTo.offset().top - container.offset().top + container.scrollTop() - 80
                            );
                        });
                    </script>

    How can I have the same auto scroll on your table press?
    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    I’m not sure what exactly you mean here. Do you want to scroll to a TablePress table? Then just use the .tablepress CSS class in your code.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Autoscroll to class’ is closed to new replies.