$('body *').each(function() {
});
If you have built-in tags <script>, etc., you can add a selector :notto exclude those:
$('body *:not(script, style, noscript)').each(function() {
});
As pointed out in the comments, and jQuery is all a docs selector , this probably won't work very well. I have not done any empirical tests, but this could improve:
$('body').find('*').not('script, style, noscript').each(...);
roryf source
share