What you should work on ( you can test it here ), make sure you run it when the DOM is ready, though, for example:
$(function() {
alert($("body").find("a p").text());
});
If it works earlier, the elements may not be ready, and your selector will not find matches.
class body, ".body" "body" ( <body>). , .class:
$(function() {
alert($(".body a p").text());
});