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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -