Click event keeps firing
- by Ben Shelock
I have absolutely no idea why this is happening but the following code seems to be executed a huge ammount of times in all browsers.
$('#save_albums').click(function(){
for(var i = 1; i <= 5; i++){
html = $('#your_albums ol li').eq(i).html();
alert(html);
}
});
Looks fairly innocent to me...
Here's the code in it's…