title: Hiding a row through javascript
body: <p>I have a row which I want to be hidden through javascript.
  the issue is it is giving me Microsoft JScript runtime error: Object required.
  Row on aspx:</p>
  
  <pre><code>&lt;tr id="RowCliamMessage"&gt;
      &lt;td&gt;
          &lt;asp:Label ID="Label11" runat="server" ForeColor="Red" Visible="false"
              Text="While ....."&gt;
          &lt;/asp:Label&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>function CompareDateRange(sender,args)
  {
      if ((CheckDate &gt;= RangeDate1))
      {
          args.IsValid = true;
  
          if (CheckDate &lt;= RangeDate3)
          {
              document.getElementById('ContentPlaceHolder1_RowCliamMessage').style.display="none";
          }
      }
      else
      {
          args.IsValid = false;
      }
  }
  </code></pre>
  
  <p>Where am I going wrong?</p>