jQuery: Chaining on() when using delegation

I believe you can do this:

$(document).on({
    "click" : function(e) { ... },
    "change" : function(e) { ... },
    "submit" : function(e) { ... }
}, ".something");

That is, use the “events-map” syntax to specify the events and their handlers, and then specify the selector to use for the delegate-style behaviour.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)