SyntaxFix
Write A Post
Hire A Developer
Questions
As described by the link I've given in comment, this
$('p[MyTag]').each(function(index) { document.write(index + ': ' + $(this).text() + "<br>");});
works (playable example).