S
S
Sergey2020-11-23 17:45:25
HTML
Sergey, 2020-11-23 17:45:25

How to display html inside fancybox?

Good afternoon.

Inside the facnybox, I want to display the text with layout from the admin panel - but it doesn’t work, for some reason it interprets the layout as text - why?

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mcheredkov, 2021-01-28
@mcheredkov

$('#content > #popupinfo').html('<h1>hello</h1>');
$.fancybox.open({
 src  : $('#content > #popupinfo'),
 type : 'inline'
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question