add home.php
page url instead of file name.
$(document).ready(function(){
$("#contact").click(function(){
$("#contents").load('url to home.php');
});
});
More Related Contents:
- How to inject javascript code that uses php variables into php page
- How to get the jQuery $.ajax error response text?
- Passing JavaScript array to PHP through jQuery $.ajax
- Send array with Ajax to PHP script
- Creating jQuery AJAX requests to a PHP function
- Change DIV content using ajax, php and jQuery
- jQuery AJAX form using mail() PHP script sends email, but POST data from HTML form is undefined
- Passing Javascript Variable to PHP using Ajax
- Jquery – Uncaught TypeError: Cannot use ‘in’ operator to search for ‘324’ in
- Pass data from jQuery to PHP for an ajax post
- How to pass an array using PHP & Ajax to Javascript?
- Jquery: Running AJAX locally without a webserver
- How can I pass variables from JavaScript to PHP?
- How to rotate image and save the image
- Cross Domain Ajax Request with JQuery/PHP
- show progressbar while loading pages using jquery ajax in single page website
- How to implement a chat room using Jquery/PHP?
- I want to use jquery nested sortable plugin with drag and drop in codeigniter using mysqli
- How do I close a connection early?
- jQuery – Call ajax every 10 seconds
- jQuery Mobile: How to correctly submit form data
- Best way to transfer an array between PHP and Javascript [duplicate]
- how to assign javascript variable value to php variable
- jQuery $.ajax request of dataType json will not retrieve data from PHP script
- Using AJAX to pass variable to PHP and retrieve those using AJAX again
- Removing black borders 4:3 on youtube thumbnails
- uploading a file via ajax with php
- How to submit checkboxes from all pages with jQuery DataTables
- How to Load Ajax in WordPress
- How can you use php in a javascript function [duplicate]