0

I have a <table> setup to display a set of data that is generated via PHP from a MySQL Database. The <table> is located inside a <div> with a max-height CSS property. Sometimes the information exceeds the max-height, and I would like to scroll to the bottom of the <table>.

I am currently using the bellow jQuery, but it only scrolls down to the middle of the <div>.

var mydiv = $('#mes');
mydiv.scrollTop(mydiv.prop('scrollHeight'));

Thank you very much, any help would be greatly appreciated!

misterManSam
  • 23,481
  • 10
  • 68
  • 87

0 Answers0