There is a solution in jquery&maphighlight ONLY!:
And the trick is in handling good one of the maphighlight's input attributes: alwaysOn:
$( "#map-tag area" ).click(function(){
$(this).data('maphilight', {
alwaysOn: true
}).trigger('alwaysOn.maphilight');
//check if area wasnt already selected - otherwise gets buggy
if( !$(this).hasClass('selected') ){
$('.selected').data('maphilight', {
alwaysOn: false
}).trigger('alwaysOn.maphilight');
$('#map-tag area').removeClass('selected');
$(this).addClass('selected');
}
});
EDIT: make sure you have the latest maphilight ! : http://davidlynch.org/projects/maphilight/jquery.maphilight.min.js , from maphilight's official webpage.