dialog jquery - pass php output to it, how ?
- by Kamil Zytkiewicz
I got this code
/* Popup for hot news */
$(document).ready(function() {
var $dialog = $('<div></div>')
.html('text to be shown')
.dialog({
autoOpen: false,
title: 'Tablica nowosci'
});
This code is in my js files included by header.php.
How to pass php output to this function ?
Inputing in .html('') above doesnt solve anything.
Please help.