Open Popup window in jQuery
This code is to open Popup window (center Popup) in jQuery framework. By just passing the url parameter to centerPopup(url) and loadPopup(url) functions you can enable the popup opening in jQuery. The below example code will enable the popup window when you click on the button id
popup-button this function will open the popup window.
jQuery(document).ready(function($){
//Click the button event!
$("#popup-button").click(function(){
var popup = jQuery(this).next("div.popupFAQ");
//centering with css
centerPopup(popup);
//load popup
loadPopup(popup);
});
});