I try to get information about all element tags and there is frequency on the page, this is how I find the tag, it’s very simple:
$('body *').each(function(){
var string = this.tagName;
But the length does not catch up:
var count = $(this).length;
It gives me 1while there are two divs , for example: JsFiddle
I can solve this problem by deleting the function each, but I need this for the tag. I have to use body * for my project, so I cannot access the div directly.
source
share