so clicking on area jquery doesn't work in ie11. works in chrome. how can make ie trigger when click on selected area on image?
html:
<img src="http://www.free-pet-wallpapers.com/free-pet-wallpapers/free-pet-desktop-backgrounds/873826831.jpg" usemap="#map" /> <map name="map"> <area shape="rect" coords="25,25,75,75" href='#asd' /> </map> jquery:
$('area').on('click', function(){ alert('click'); }) jsfiddle:
i don't know jquery if uses onclick in area tag it's bug in ie11. reported ie11 preview released b https://connect.microsoft.com/ie/feedback/details/791499/onclick-doesnt-work-in-area-tag-on-ie11 @ least me workaround put javascript code in 'href'.
Comments
Post a Comment