title: I want to hide Fields if its value is empty and image src also in HTML using Javascript
body: <p>how to hide fields in html if fields are empty and the image src also. using java script. please suggest</p>
  
  <pre><code>&lt;div id="pagewrapper" &gt;
      &lt;div class="row" &gt;
          &lt;div class="column-half" style="width:500px"&gt;
              &lt;div class="containerdiv" &gt;
  
                  &lt;form:label path="file4Desc" type="text" value="" maxlength="50"&gt;
                  &lt;/form:label&gt;
                  &lt;form:input path="file4Desc" value="${agreement.file4Desc}" 
                      style="width:300px"/&gt;
                  &lt;font color="red"&gt;&lt;form:errors path="file4Desc" /&gt;&lt;/font&gt;           
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="column-half" style="width:13%"&gt;         
              &lt;div class="containerdiv"&gt;
                  &lt;form:label path="filename3" type="text" value="" maxlength="50"&gt;
                  &lt;/form:label&gt;
                  &lt;a href="${pageContext.request.contextPath}/customer/viewDownload3/${agreement.agreementId}.htm"&gt;
                      &lt;img src="${pageContext.request.contextPath}/resources/images/download3.gif" 
                                  border="0"
                                  title="Download this document"/&gt;
                  &lt;/a&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>