is there anyway to get the class when click event is fired. My code as below, it only work for id but not class.
You will get all the class in below array
event.target.classList