I´m testing the length property which returns this error:
$("div.rows").children().length is not a function
var count = $('div.rows').children().length();
$('div#header').html(count);
When i use .size(); it does show me a value, which is 0, which is still wrong but at least it doesn't return an error.
I'm pulling my hair out over this one. Any ideas?
It's not a function, it's a numeric property, so lose the last ()
pair:
var count = $('div.rows').children().length;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With