Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

500
Views
How to scroll table row by row at button click jQuery

I have table with fixed heihgt, and scrollable body, i add the button for scroling row one by one.

Ideas is to scroll row by row by user clicking.

For now i create func for scroll down, but it's not good for me, some how i need to create func to scroll table on click one row down.

$('#more-arrows').click(function () {
    var scrollBottom = Math.max($('.table-udt').height() - $('tbody').height() / 200 + 1000, 0);
    $('tbody').scrollTop(scrollBottom).animate({
        scrollBottom: 0
    }, 1000);
});

JsFiddle

So i want to scroll on #more-arrows click, row one by one scrolle to the bottom.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can use jquery's .animate() method to achieve it. Try this

$('#more-arrows').on('click', function(){
    $('.scroll').stop().animate({
        scrollTop: '+=40px' // 40px can be the height of a row
    }, 200);
});
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!