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: