javascript - Easy fancybox close button not working -
so i'm working site , have installed easy fancybox got modal part working when clicked on close button #fancybutton-close
$.fancybox.close();
is not working though put alert , fires it. i'm missing here?
here link test site: http://vetclinic.dragonscalewebdev.com/courseswebinars/
p.s. put fancybox modal in testimonial part of page , put 2 pop testing purposes.
try this
$(document).ready(function () { $('.close-modal').click(function(){ window.parent.$.fancybox.close(); }); });
Comments
Post a Comment