Regarding the calling mechanism of jquery function
<p>Suppose I have created one jQuery function to check if elements exist or not like:</p>

<pre><code>jQuery.fn.exists = function () { 
    return this.length &gt; 0; 
}
</code></pre>

<p>Then I call:</p>

<pre><code>if ($("#MyDiv").exists() == false)
   alert('not exist');
else
   alert('exist');
</code></pre>

<p>If I call jQuery function above it works. But can't we call the jquery function like this way <code>exists('#MyDiv')</code> ? If I try to call this way then I am not getting result...why? </p>
