how do i store the object reference after the element created in raphael js

59 views Asked by At

I am drawing SVG lines using Raphael JS. And adding id to those lines using node.id = "lines". By doing this I am creating id for the lines I created.
My problem is I am creating multiple lines. If it is one line then I can use the $('#lines').attr("data"," ") something. Because of Multiple line if use this method all elements data will be changed.

After the variable.node.id how do I access that particular element and store some data in it. I am new to Raphael JS. Tell me if anything can replace the node.id method also.

Thanks
enter image description here

This is how my function looks

0

There are 0 answers