bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
I want to make a dynamic popup with url. For the first time pop up is working fine. But after closing the popup, pop up is not woking. I only get the message in console like "Uncaught TypeError: Object [object Object] has no method 'bPopup'"
Here is my code:
jQuery('.entry-link-pop').bind('click', function(e) {
var url = jQuery(this).attr('link');
// Prevents the default action to be triggered.
// e.preventDefault();
// Triggering bPopup when click event is fired
jQuery('#element_to_pop_up').bPopup({loadUrl: url});
// return false;
});
I want to make a dynamic popup with url. For the first time pop up is working fine. But after closing the popup, pop up is not woking. I only get the message in console like "Uncaught TypeError: Object [object Object] has no method 'bPopup'"
Here is my code:
Thanks in advance.