Is it possible to add php to a jquery function? On ajax success I'm displaying some text in a div using the .text() function.
success: function(html) {
msg_each.nextAll('.msg_box:first').text('show some text...').fadeIn(200);
}
Via jquery, I would also like to use a Wordpress function:
<?php comments_popup_link('Post Comment', '1 Comment', '% Comments'); ?>
How can I add that to the .text() function?