Link to home
Start Free TrialLog in
Avatar of greddin
greddinFlag for United States of America

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.
<table border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr valign="top">
			<td width="99%">&nbsp;</td>
			<td>&nbsp;</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 />&nbsp;<br />
							</td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
</table>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of dnardozzi
dnardozzi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Once you have the <TD> node, you can do anything you want.

var html = $('table table tr td').html(); //retrieves the HTML in the node
Avatar of greddin

ASKER

Thanks!