greddin
asked on
Help with JQuery Selector
I need help with JQuery selector syntax for getting the nested table's 2nd row td cell data?
Please see my code below. I'm only trying to get the html that reads:
<a href="http://www.airnav.com/depart?http://www.runwayfinder.com/?loc=F23" target="runwayfinder"><img src="http://img.airnav.com/sc/00699.jpg" alt="" width="240" border="0"></a>
Thank you.
Please see my code below. I'm only trying to get the html that reads:
<a href="http://www.airnav.com/depart?http://www.runwayfinder.com/?loc=F23" target="runwayfinder"><img
Thank you.
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr valign="top">
<td width="99%"> </td>
<td> </td>
<td width="240">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr><th align="left" bgcolor="#ccccff">Sectional chart</th></tr>
<tr>
<td bgcolor="#ffffff">
<a href="http://www.airnav.com/depart?http://www.runwayfinder.com/?loc=F23" target="runwayfinder"><img src="http://img.airnav.com/sc/00699.jpg" alt="" width="240" border="0"></a>
<br /> <br />
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
var html = $('table table tr td').html(); //retrieves the HTML in the node