Some of the event shortcuts are a bit ambiguous. For instance, .load() is either an ajax method or an event handler depending on the context. Doing .bind("load", function() {}); leaves no doubt what you mean.
Also, I seem to remember (not sure though...) that there was some talk about maybe phasing out .click() etc to free up the API at some stage, so some people recommended using .bind() in case that eventuated. Personally I use .bind() as it seems a bit "cleaner" than using lots of shortcuts. On 06/03/07, agent2026 <[EMAIL PROTECTED]> wrote:
What's a situation where you want to use .bind then? (still new at this) Adam Karl Rudd wrote: > > The click, blur, keyup, etc functions are just shortcuts. So instead of: > > $(...).bind( 'click', function... > > you can write: > > $(...).click( function... > > Karl Rudd > > -- View this message in context: http://www.nabble.com/What-is-the-difference-in-functionality-between-bind%28%29-and-click-blur-keyup-etc%28%29--tf3352982.html#a9327987 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/