Can I have an onclick event on a imagemap area element?
Pay attention: Attribute href is obligatory, without it the area-tag does nothing! To add a click event, you’ll need to block default href. Your code should start as follows: $(“.blue”).on(“click”, function(e){ e.preventDefault(); /* your code here */ }); Live example here.