Closed javier-HEG closed 12 years ago
According to this source, such a behavior could be happening because there are multiple DOM Ready functions inside the HTML <body/>
tag.
Currently I'm using a temporary solution proposed by a commenter, to unbind and then bind again the click event: $(‘select’).unbind(‘click’).bind(‘click’,handler);
.
An error in the javascript code can help stop the double click effect on buttons. For example, if "Open" is clicked without any selected survey, it should produce only one alert. Instead, if
event
is declared as a parameter of function it still produces two alerts, despite of theevent.stopPropagation()
line.