to change the content in the open lightbox, you can use the additional function
settings
| GreyOwlLightbox( ‘set_content’, your_html_content ); | сhange content in open lightbox |
code
var your_html_content = '<p>Your demo content</p>';
GreyOwlLightbox( 'set_content', your_html_content );
// – – – – – – – – – – – – – – – – – OR – – – – – – – – – – – – – – – – – //
jQuery('.open-example-lightbox').GreyOwlLightbox('click', {
dom_html_element : 'html-content-example-box',
before_open : function( content ){
content.find('.example-inside-lightbox-btn').on('click', function(){
/* change content after button click */
GreyOwlLightbox( 'set_content', your_html_content );
});
}
});
example:
Content for example
to change the content inside the lightbox, click on the button