Apply event delegation on input fields.