trigger click behaviour of image-map's area
- by Amit
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 :)