I’ve got a list that is generated from some server side code, before adding extra stuff to it with jQuery I need to figure out how many items are already in it.
<ul id='mylist'> <li>Element 1</li> <li>Element 2</li> </ul>
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.
Try:
Just curious: why do you need to know the size? Can’t you just use:
?