I\'m using SVG together with jQuery in my Mvc Application. I draw a series of rectangles on my page and what I would like to do is attach a click or mouseover event for each
Try this:
$('rect#Y6').click( function(){ alert('hello'); });
Your code to add the click handler needs to be part of the onLoad function - with that change it works for me.
click
onLoad