Tuesday, 11 October 2016

XML : Get id of clicked svg path with javascript

I have an SVG map of counties in Massachusetts. The svg file contains paths outlining each county, and each path has the name of the county as its id. I need to grab the id of the county when it is clicked, so that it can be set to a variable.

No comments:

Post a Comment