What does the [0] mean? Also is there a reference/manual that i can use to prevent asking simple questions like this..
var height = $('.string-parent-container')[0].scrollHeight;
$('.string-parent-container').scrollTop(height);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means the first element that matches
$('.string-parent-container')$('.string-parent-container')returns a collection of elements with the classstring-parent-container. And[0]is the first element that has this class.