emit input event after target or class was added to anchor