I have around 25 different rectangle inside a container. But while creating a context menu i am getting a trouble here. I could create a context menu by selecting a id of the container and it's applying to the whole rectangle. But i have different context menu for each rectangle. Kindly help me on this.
you can check my code here :
http://jsfiddle.net/ajayholla/nusbz3t6/13/
Here the main problem is when you click on rectangle its showing that context menu and affecting all other. once refresh the page then again click other rectangle that context menu will activate and that would affect the whole container.
I have around 25 different rectangle inside a container. But while creating a context menu i am getting a trouble here. I could create a context menu by selecting a id of the container and it's applying to the whole rectangle. But i have different context menu for each rectangle. Kindly help me on this. you can check my code here : http://jsfiddle.net/ajayholla/nusbz3t6/13/
Here the main problem is when you click on rectangle its showing that context menu and affecting all other. once refresh the page then again click other rectangle that context menu will activate and that would affect the whole container.