Crewow is a Blog contains Free Web Training's, Tutorials, Resources and much more. It will feature best Tutorials related Jquery, PHP, Ajax, CSS and other Web development languages. It will also tell you the sites from where you can get best web resources. Creatively Wow!
Monday, 2 September 2013
PHP File Load Via Jquery into DIV
This Tutorial will show you how you can load PHP File via Jquery in any of your DIV for making your code neat and clean.
You need to create a PHP Page.
After that You will Downlaod Latest Jquery from Jquery Site and keep it in a folder name JS and include Link in your head section.
Now in your page body Tag you will make a div and set id to showphpfile
For Loading PHP Page in this Div you will write below code in script tag
$("#showphpfile").load('URL of your PHP Page');
.load function is used for loading page in a div which id is showphpfile.
$(document).ready(function() function will do this when page load.