JQuery: Showing / Hiding html tags if another tag is empty or not
<p>this is my first time posting here, I have a question which I have searched high and low for and so far cannot find a working answer.</p>

<p>The HTML would be as follows:</p>

<p><code>&lt;span class="label"&gt;Label:&lt;/span&gt;</code><br>
<code>&lt;span class="value"&gt;{{Value}}&lt;/span&gt;</code></p>

<p>Basically, {{Value}} is a variable inserted (or not) via php/mysql.<br>Of course if {{Value}} is empty, you get the following when the page is rendered:</p>

<p><code>&lt;span class="label"&gt;Label:&lt;/span&gt;</code><br>
<code>&lt;span class="value"&gt;&lt;/span&gt;</code></p>

<p>The idea is for Label: to be hidden if there is nothing in {{Value}}.</p>

<p>I have tried various examples using $(.value:empty) &amp; if statements but it hides .label regardless.</p>

<p>Any suggestions are welcome.<br>
Thanks in advance,<br>
Rob</p>
