How to run click event handler in Internet Explorer 10 using jquery?

I am trying to start the click event handler using jquery 1.7 by clicking on the anchor tag. This code works fine in firefox, but I cannot display a warning window using the same code in IE 10. Could you tell me how to achieve this functionality in Internet Explorer 10?

$(document).ready(function() {
    $('.call-link').on('click', function (ev, evData) {
        alert("hello world");
    }); 
});
+3
source share
3 answers

It is not called in IE because the element is disabled.

see: Demo

$(document).ready(function() {
    $('.call-link').click(function (ev, evData) {
        alert("hello world");
    });
});
+6
source

Try:

$(document).on('click', '.call-link', function (ev, evData) {
        alert("hello world");
}); 

Demo : http://jsbin.com/tucu/1/

+1
source

IE , - . . , .

+1

All Articles