in Raphaeljs, it wrote this line of code:(only relevant part is shown)
......
sets.id = index;
grid.hex[poly].click(
function(e)
{
var id=this.id
.....
It sets the id of the sets[] properly, but the id of “this” is the id of the path inside of the sets, the one that was clicked. I have to have the id of the sets. How can I accomplish that?
EDIT:
I want “this” to be sets, not the path that was clicked.
Bind function to
setsOr if you are not using jQuery.