Hi! I got a problem with IE when adding new events to a link... I have 2 arrays: array_id & array_img that holds the id of the link and the image of the img (<a id="someID"><img src="someIMG" /></a>)
for (i = 0; i < cnt; i++) { img = get_image(array_img[i]); $("#i"+array_id[i]).attr("src", "images/"+img); $("#"+array_id[i]).attr({"onClick":"return false;", "class":"check"}); if (array_img[i] > 0 && array_img[i] < 10) $("#"+array_id[i]).attr("onDblClick", "open_slots ("+array_id[i]+", "+array_img[i]+")"); } In Firefox, when double clicking, works perfectly. But with IE, it never calls the function open_slots. What can i do ? Thank you. PS: The full script is in: http://www.megatesting.com.ar/minesweeper/single/