How to call a jQuery method?
<p>Say for example, using javascript i would normally call a method like this</p>

<pre><code>&lt;a href ="" onclick="javascriptMethod()"&gt;Link&lt;/a&gt;
</code></pre>

<p>and implement the method like this</p>

<pre><code>&lt;script type="text/javascript"&gt;
function javascriptMethod(){
 //codes
}
&lt;/script&gt;
</code></pre>

<p>For some reaon on most jQuery documents all I can find is </p>

<pre><code>$("").click(function(){
  //codes
});
</code></pre>

<p>Can we not make onclick call on jQuery?</p>

<p>CLEARIFICATION: Instead of <code>$().click</code> I need to call the method for the  itself due to existing div array which I cannot change. I know how to do it on JavaScript and is quite easy. The question is, can I not call jQuery method for the an element like <code>&lt;img onclick="jQueryMethod" /&gt;</code> ? </p>

<p>I need to pass a value to the method, thats the most important bit. Since the elements are in an array, i cannot figure out which element[x]. </p>
