0

I have created a number of SVG objects with each having an ID. The SVG's are created with a loop, and I want to make a tooltip for each with different text for each object.

I thought using JavaScript would be good since it is possible to retrieve a specific object through "getElementById". I have tried looking at other questions on StackOverFlow but none is related to my specific problem.

Anyone having some ideas for code for this task? I am novice at programming so trying to create code based on other code is difficult.

hello
  • 11
  • 4
  • Create a title element child for each the text content of the title element will display as a tooltip – Robert Longson Dec 03 '17 at 20:39
  • What do you need to do that isn't covered by [this answer](https://stackoverflow.com/questions/10643426/how-to-add-a-tooltip-to-an-svg-graphic)? – Paul LeBeau Dec 04 '17 at 05:16

0 Answers0