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

This is how my function looks