Retrieving text inside a <b> tag
Hi,
I´d really appreciate if you could explain how I´d be able to retrieve the text "Text I want to retrieve".
The structure is exactly as presented.
This is what I managed to come up with so far:
- jQuery(".colhead").parent().parent().children()[1].cells[1].childNodes[1]
This brings me the <b> tag where the text is, but none of the functions or attributes seems to contain the text.
- <table width="95%" cellspacing="0" cellpadding="5" border="1">
<tbody>
<tr>
<td class="colhead">col1</td>
<td class="colhead">col2</td>
</tr>
<tr>
<td align="center" style="padding: 0px;">
<a href="page.php?cat=19">
<img border="0" alt="Movies" src="http://www...">
</a>
</td>
<td align="left">
<a href="page.php?id=1111111">
<b>Text I want to retrieve</b>
</a>
<br><font color="#666666">2010-02-07 23:52:30</font>
</td>
</tr>
.
.
.
</tbody>
</table>
My intention is to loop through each of the TRs and retrieve the text that will be inside that <b> tag.
Thanks a lot in advance.