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 working. I only get the message in console like "Uncaught TypeError: Object [object Object] has no method 'bPopup'"
I am using following library: 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;
});
Thanks in advance.
This error mostly pops up if you've included jquery.js files twice (not for this necessarily, but from a general point of view). Please ensure that you've NOT done that :)