I have a little js problem and thought this wonderfull community would be able to help me!
Let’s say I want to find all $('footer') elements and I want to know if there is either 1 or 2 footers on the page.
How would I do that?
using length() or something similar?
Thanks a lot for your help 🙂
Use the
length[docs] property.Please see the jQuery docs.
They’re really very good, and typing
lengthinto the search field would dynamically bring the solution to you.