This seems like it should work but for some reason it isn’t. Can anyone help?
I am trying to add the count of children divs to the “booklist” divs on this page: http://216.172.167.18/~julia/books/
I have this jQuery running:
$('.booklist').addClass(function() {
return $(this).children('div').length;
});
Thanks for your help!
Michelle
Length is a number, it needs to be a string.