Previously I was using jQuery 1.7.1 in my code. I was getting the above error. Then I used the jQuery 1.11.1 straight from the google repository
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js">
</script>
but still I'm getting this error. How should I resolve this?
Due to this error my other jQuery functionality is also not working.
I researched a lot about the solution but every time I got the same solution of upgrading the jQuery version. But this is also not working for me.
Try:
event.originalEvent.defaultPrevented
As in:
$(document).on('click', function (e) {
if (e.originalEvent.defaultPrevented) return;
// continue
});