Post the code of the object you are clicking on, and the event that is firing twice. Usually this is caused by declaring it in the OnClick event, as well as Handles Something.click in the even prodecdure.
You have something outside the example triggering another .click()
, check for other handlers that are also triggering a click
event on that element.
$('selected').unbind('click').bind('click', function (e) {
do_something();
});
Strange behaviour which I was experienced also. So for me "return false" did the trick.
$( '#selector' ).on( 'click', function() {
return false;
});
You can also try with different methods,
$('#id').off().on('click', function() {
});
$('.class').off().on('click', function() {
});
$('.class').on('click', function () {...your codes...});
$(document).on('click','.class', function () {...your codes...});