139
rated 0 times
[
145]
[
6]
/ answers: 1 / hits: 35936
/ 14 Years ago, tue, august 24, 2010, 12:00:00
This might be a very simple thing in jquery but I am not able to figure it out. My html document has the following structure
<div class=body>
<a href=/question?id=70><p>This is the text I want to extract</p></a>
</div>
I tried this
$(body).find(a p).text()
but this does not seem to be working for me. I am able to get the paragraph object but not the text. I tested it with console.log with no use.
More From » jquery