How to attach an event to be fired on a field

I want to attach an event on fields(DHXLightboxText, DHXLightboxSelect), that will be fired when that field is filled.
need some help about how to proceed
Thanks in advance.