PHP File Load Via Jquery into DIV
Tutorials Shared by the Internet Community
Total Hits - 28453
Total Votes - 196 votes
Vote Up - 106 votes
Vote Down - 90 votes
Domain - crewow.com
Category - PHP/File Handling
Submitted By - Furqan Aziz
Submitted on - 2013-12-20 01:35:59
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. More detail...