title: getting the html of div with runat=server using jquery/javascript
body: <p>I have a div having runat="server"</p>
  
  <pre><code>&lt;div id="divError" runat="server" style="background-color:#FFF;"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and having the script part as</p>
  
  <pre><code>$(document).ready(function () {
          var IsError = $("#&lt;%= divError.ClientID %&gt;").html();
          debugger;
          if (IsError != null) {
              LogOutButtonClick();
          }
          else {
              if (parent.window.GetLoginCredentials) {
                  parent.window.GetLoginCredentials(CheckLoginCredentials);
              }
          }
      });
  </code></pre>
  
  <p>But the problem is when I check the IsError, it is undefined
  The reason is the $("#divError") is object[]
  How to achieve this using javascript/jquery</p>