Hello,

I've put together a little plugin that's based on Zach's $.live().

Usage:

    $(context).delegate('click',callback)  // same as live()

    $(context).delegate('li:even, li:odd :click',callback)  //
supports multiple selectors

    $(context).delegate('li :click.namespace',callback)  // supports
event namespace

    $(context).delegate('li:first a :click',callback)  // supports
pseudo classes

    $(context).delegate('li a :click mouseover',callback) // support
future multiple event format

Check out the source code here: 
http://raxanpdi.com/blog-jquery-event-delegate.html

What do you think ?

Ps. Based on discussion from this thread:
http://groups.google.com/group/jquery-dev/browse_thread/thread/588fe6d162845290/21bbcdbead516f13

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=.


Reply via email to