scrollHeight is not a jQuery property, it is a DOM property. jQuery selectors always return arrays, because it is not known in advance how many elements your selector will match. As you are using an ID selector you know that "normally" only one element should be returned, so you select the first element from the returned array and invoke call the scrollHeight property on it.