e.target.name is not working code example Example: e.target.name is not working insted of e.target.name use e.currentTarget.getAttribute('name')