I have implemented a feature in my code that allows users to add new textareas by simply clicking on a button. This functionality is achieved by cloning the existing div, following a solution I found on Stack Overflow. Everything works perfectly fine for the first textarea, but the issue arises when trying to change the text color in the cloned textareas. I attempted switching from "eventListener" to "on." without success. My approach involves using a selector to determine the desired text color.
Is there a straightforward solution to ensure that the color of text in all divs can be changed? It seems like the problem may lie in the cloned divs not having the event listener attached to them properly.