Note that there are some explanatory texts on larger screens.

plurals
  1. POHide link from a cell if other elements in that cell are empty
    text
    copied!<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/8332055/hide-cell-content-if-child-spans-are-empty">hide cell content if child spans are empty</a> </p> </blockquote> <p>I need to hide map and direction link from the second cell since the OfficeName, address, phone etc are empty. In first cell, it makes sense for the link to appear as other fields have values.</p> <p>How to hide the link in jquery?</p> <pre><code>&lt;table class="OfficeInfo" border="0" style="width: 100%" cellspacing="10px" cellpadding="15px"&gt; &lt;tr&gt; &lt;td class="Office1" style="width=40%"&gt; &lt;span class="OfficeName"&gt; Munster Women&amp;#39;s Center&lt;br /&gt;&lt;/span&gt; &lt;span class="Address"&gt; 1111 North Ronald Reagan Pkwy, &lt;br /&gt; &amp;#160;Avon,IN 46123 &lt;/span&gt; &lt;span class="Phone"&gt; (317) 342-1254&lt;/span&gt;&lt;br /&gt; &lt;a class="mapdirectionsLink" href="#"&gt;map &amp;#38; directions&amp;#62;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class="Hours"&gt; MTW: 9:00 AM- 5:00 PM &lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;span class="OfficeName"&gt; &lt;/span&gt; &lt;span class="Address"&gt; &lt;/span&gt; &lt;span class="Phone"&gt; &lt;/span&gt;&lt;br /&gt; &lt;a class="mapdirectionsLink" href="#"&gt;map and directions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; &lt;span class="Hours"&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Office3 &lt;/td&gt; &lt;td&gt; Office4 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload