add option to specify the event fired when modified

this fires 'change' by default to be backwards compatible, but can be
used to fire 'input' if desired