Thursday, October 25, 2012

jQuery Load GET Request Example

The jQuery Load() ajax method supports both HHTP GET
& HTTP POST requests. In this post we shall see on how to send a HTTP
GET request to the server.

The syntax for sending a HTTP GET
request using the Load() method is as follows.

$("#<Target HTML
element ID>").load("<Server
URL with Parameters>");
The following example sends a HTTP GET request to the server using the
Load() method and displays the data returned by the server in a DIV tag in the
browser.