jquery with or without extend keyword
<p>Can anyone tell me any difference between these two kinds of extend function? thanks.</p>

<pre><code>$.fn.alertWhileClick= function() {
   alert($(this).val());
}


$.fn.extend({
    alertWhileClick:function(){
      alert($(this).val());
    }
});  
</code></pre>
