I have a problem with the following code in an ASPX page:
I ran into the same issue with a click event, and found this article. In essence, if you have more than one jQuery document-ready functions inside the
tags, you can get multiple events. The fix is, of course, to not do that, or to unbind the click event and rebind it, as noted above. Sometimes, with multiple javascript libraries, it can be hard to avoid multiple document.ready()'s, so the unbind is a good workaround.
$('#my-div-id').unbind("click").click(function()
{
alert('only click once!');
}