how to check does the asp. net control element exist or not by using jquery?
<p>how to check does the asp. net control element exist or not?
My page actually don't have the element with ID "hyper", but i just want to verify the existence of this.</p>

<p>im looking for the asp.net element with ID "hyper".</p>

<p>so what i have tried is  </p>

<pre><code>if (("#&lt;%=hyper.ClientID %&gt;").exists())
</code></pre>

<p>or</p>

<pre><code>if (("#&lt;%=hyper.ClientID %&gt;").length&gt;0)
</code></pre>

<p>but it give me this error </p>

<blockquote>
  <p>The name 'hyper' does not exist in the current context</p>
</blockquote>

<pre><code>&lt;script type="text/javascript"&gt;
        function getElement() {
            if ($('#&lt;%=(hyper.ClientID)%&gt;').length &gt; 0) {
                alert("none!");
            }
            else
                alert("exist!");

        }
&lt;/script&gt;

&lt;asp:HyperLink ID="hyper2" runat="server" NavigateUrl="www.facebook.com" &gt;click me&lt;/asp:HyperLink&gt;
</code></pre>
