SyntaxFix
Write A Post
Hire A Developer
Questions
scrollHeight is a regular javascript property so you don't need jQuery.
scrollHeight
var test = document.getElementById("foo").scrollHeight;