-1

I am trying to make a block clickable by a class named atnd_modal and opening a modal popup on click

I am doing this-

$('body').on('click','.atnd_modal', function(){
//modal opening code here 

});

Its working fine in chrome and other browser but its not working in IE. I also tried window instead of body but its not working.

and its working when i am trying with IE in useragent.

How can i make this working in IE ?

Sunil Kumar
  • 311
  • 1
  • 5
  • 16

1 Answers1

0

jquery on requires jquery version 1.7 or later ..try delegate if your version is below

$('body').delegate('.atnd_modal','click', function(){
//modal opening code here 

});

And most importantly make sure to check jquery is included

coolguy
  • 7,866
  • 9
  • 45
  • 71