jquery attach an object to button event code example
Example: jquery bind function to multiple events
$('#element').on('keyup keypress blur change', function(e) {
// e.type is the type of event fired
});
$('#element').on('keyup keypress blur change', function(e) {
// e.type is the type of event fired
});