Create a click funtion on a specific path

Hi!

I’m trying to create a click function to have an interaction with one element (path) of my animation in javascript or jQuery.
I can’t figure it out how to do that and if it’s possible.

I’m using simple html/css and js file. But I can’t interact with the elements inside the svg tag.

If someone has an example or an explanation it will be perfect!

Thanks