我需要隐藏第二个单元格中的地图和方向链接,因为OfficeName,地址,电话等都是空的。在第一个单元格中,链接显示为其他字段具有值。
如何在jquery中隐藏链接?
<table class="OfficeInfo" border="0" style="width: 100%" cellspacing="10px" cellpadding="15px">
<tr>
<td class="Office1" style="width=40%">
<span class="OfficeName"> Munster Women's Center<br /></span>
<span class="Address"> 1111 North Ronald Reagan Pkwy, <br />  Avon,IN 46123 </span>
<span class="Phone"> (317) 342-1254</span><br />
<a class="mapdirectionsLink" href="#">map & directions></a><br /><br />
<span class="Hours"> MTW: 9:00 AM- 5:00 PM </span>
</td>
<td>
<span class="OfficeName"> </span>
<span class="Address"> </span>
<span class="Phone"> </span><br />
<a class="mapdirectionsLink" href="#">map and directions</a><br /><br />
<span class="Hours"> </span>
</td>
</tr>
<tr>
<td> Office3 </td>
<td> Office4 </td>
</tr>
</table>