Using target instead of srcElement