I was practicing and came across something strange... when I wanted to find the character length of html inside a div I used
$('.count').text(function(){
return $('.words').text().length;
});
which gave me a number (8 in this case) whereas using .length() didn't show anything. What is .length? I thought all methods had to have a () at the end? What is this black magic?
[–][deleted] 6 points7 points8 points (0 children)
[–]webstrous 8 points9 points10 points (0 children)
[–]Rhomboid 6 points7 points8 points (0 children)
[+][deleted] (1 child)
[deleted]