How do I determine scrollHeight?

Correct ways in jQuery are –

  • $('#test').prop('scrollHeight') OR
  • $('#test')[0].scrollHeight OR
  • $('#test').get(0).scrollHeight

Leave a Comment