trigger click behaviour of image-map's area
Posted
by Amit
on Stack Overflow
See other posts from Stack Overflow
or by Amit
Published on 2010-06-03T13:12:30Z
Indexed on
2010/06/03
13:14 UTC
Read the original article
Hit count: 230
I have a image map set up and each area in the image map has a href defined. the href on area contains urls to other pages in my application. i generate a have a small ul which lists down name attribute of the area tag. i want the dynamically generated ul/lis to imitate click behaviour of area tag. for this, i have the following jquery set up -
$('li').click(function(e){
$('area[name='+$(this).html()+']').trigger('click');
});
but the above works well only in ie6+. ff does not fire the click event. i also tried the click() variant but to no avail.
looking forward for some help.
Thanks :)
© Stack Overflow or respective owner