fetch active element on input event