How to change content in an onclick function for all elements inside a button tag?
I have a layout where if the image and/or text are clicked, then it populates different information below it. If I have an img
and paragraph inside the button, it will only work if you click anywhere OUTSIDE the img
and h
tag. It also only works if there is nothing inside the button tag except for plain text for some reason (no p
tag, no header, etc).