I have the child count coming from the server, i'd rather not do any more math there. I'd like to extract the number from the markup.
Within every .active-parent I need to loop through, and get a number from .category-count .
children_counts = $('.active-parent .category-count')
children_counts.each(function(){
var parent_count = $(this).text();
console.log(parent_count)
});
I have it returning the numbers with the log statement
189
5
86
261
Can't figure out how to sum those up. Any help would be much appreciated.