One major advantage of your suggested technique is you only have to bind once the event handler to a parent such as document and this handler will be able to catch the events coming from all children that satisfied the given selector such as button.anyclass".