I have that div:
<div id="content"></div>
and I want to include inside PHP file using jQuery.
I try with this, but doesn't work:
var about_me = "<?php include('php/about_me.php') ?>"
$('$content').click(function(){
$('#content').text(about_me);
});
This returns me PHP code like a string?
You could use .load
:
$("#content").load('/about_me.php');