There is no difference at all.

$(...).click( fn )

is merely a shorthand for:

$(...).bind( 'click', fn );

You can see this in the code that creates .click() and the other shortcut
methods:

jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
    "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," +
    "submit,keydown,keypress,keyup,error").split(","), function(i, name){

    // Handle event binding
    jQuery.fn[name] = function(fn){
        return fn ? this.bind(name, fn) : this.trigger(name);
    };
});

-Mike

> From: coughlinsmyalias
> 
> What is the main difference between using .bind() and 
> .click(), when I was reading up, it was mentioning it removes 
> event bubbling?

Reply via email to