This works ok:
$('#icon1').live("hover", show_popup, hide_popup);
$('#icon2').live("hover", show_popup, hide_popup);
$('#icon3').live("hover", show_popup, hide_popup);
But this does not works and has no error:
var icons = ['#icon1', '#icon2', '#icon3'];
for (icon in icons)
$(icon).live("hover", show_popup, hide_popup);
What is wrong with that code?