J
Jacqueline Snook
Hi,
I am working on a website that uses a SVG diagram with multiple
polygons (to represent rooms in a hotel). Each polygon has a class to
represent whether the room is single or double. In a separate
javascript file, I need to do a different action depending on the
class. How do I read the class in the Javascript file. I tried using
getAttribute("class"), but this does not work - IE comes up with an
error stating 'The object doesn't support this property or method'.
Any help would be greatly appreciated as this is doing my head in!!
Jacqueline
I am working on a website that uses a SVG diagram with multiple
polygons (to represent rooms in a hotel). Each polygon has a class to
represent whether the room is single or double. In a separate
javascript file, I need to do a different action depending on the
class. How do I read the class in the Javascript file. I tried using
getAttribute("class"), but this does not work - IE comes up with an
error stating 'The object doesn't support this property or method'.
Any help would be greatly appreciated as this is doing my head in!!
Jacqueline