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.



  1. You need to create a PHP Page.
  2. 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.
  3. Now in your page body Tag you will make a div and set id to showphpfile
  4. 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.
Website is Crewow

No comments:

Post a Comment