maphilight
maphilight copied to clipboard
How to clear selected items on click of other area
Here is the link to download zip: http://bit.ly/1PlqGmJ (POC i created)
Issue: On click i am highlighting selected map area. if i click on other map area, script should remove previously selected map area and show for the present clicked map area.
anyone came up with the solution?
$('area').each(function() { var data = $(this).mouseout().data('maphilight') || {}; data.alwaysOn = false; $(this).data('maphilight', data) });