Dave's Brain

Browse - Programming Tips - jquery's size() is gone. What should I use?

Date: 2017sep18
Language: javaScript
Library: jquery

Q.  jquery's size() is gone.  What should I use?

A.  Use length -- its not a function.  eg:

var n = $('.myclass').length

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.