I havent had much exposure to the Canvas element in HTML5. I have done basic things such as rendering a rectangle to the Canvas
It it possible to assign a Class or Id to said rectangle and manipulate via jQuery such as assigning a click event?
To answer your question: No, it’s not possible: elements, shapes and images drawn on
<canvas>elements are not part of the DOM.Yet, there are a lot of “framework”-type of libraries out there that add interactive capabilities. As mentioned in the comments there’s Raphael or jCanvas or Kinetic or many many more.
If you want to go canvas on your own I found the tutorials on MDN or html5rocks pretty useful.