PHP File Load Via Jquery into DIV

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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.

Statistics

  • Total Hits - 21253

  • Total Votes - 190 votes

  • Vote Up - 101 votes

  • Vote Down - 89 votes

  • Domain - crewow.com

  • Category - PHP/File Handling

  • Submitted By - Furqan Aziz

  • Submitted on - 2013-12-20 01:35:59

Description

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
$(document).ready(function(){
$("#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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements