How to include php file using Jquery?

Mar 13, 2012   //   by phpfreelancer.biz   //   Blog, Jquery Tutorial  //  No Comments

I have that div and I want to include inside php file using jquery.

<div id="content"></div>

I try with this, but doesn’t work:

var about_me = "<?php include('php/about_me.php') ?>"

$('$content').click(fucntion(){
 $('#content').text(about_me);
});

Here’s the code:

$("#content").load('/about_me.php');

Leave a comment

Share This Post

RSS Wordpress News