For work I need to check if some text was clicked, then in the spot that was clicked append an 'anchor' for a sticky note. So I would like to add an event listener to the text node so that way the function will only run if text is clicked.
Th event listener is currently on the text nodes container which is causing issues if you click inside the container, but not on text nothing will happen. Is there a way to only add an event listener to the text or another work around to find out if text was clicked on?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/tIM3nLv
Comments
Post a Comment