The jQuery ajax get () function is a built-in function in jQuery. specify whether you want to issue a GET or a POST request. Syntax: $.get ( URL,callback ); The required URL parameter specifies the URL you wish to request. 8 Answers Sorted by: 379 Use data option of ajax. Internally, jQuery get () method calls ajax () method only. This is an Ajax Event. All jQuery AJAX methods use the ajax () method. It can retrieve any type of response from the server. 2 data \u2212 This optional parameter represents key/value pairs that will be sent to the server. The optional success parameter is a callback function. So by considering the above requirement, I have decided to write this article. You can send data object to server by data option in ajax and the type which defines how you are sending it (either POST or GET ). The jqXHR and settings objects are passed as arguments. It may also return the cached data. $.ajax () can be used to send http GET, POST, PUT, DELETE etc. request. Alternatively, as of jQuery 1.5, the .error () method of the jqXHR object returned by jQuery.get () is also available for error handling. In many forum post, I have read one common question that is how to make jQuery ajax GET request with input parameter in ASP.NET MVC. It is used to retrieve the returned data . The Next parameter data is a data to submit form data in JSON format, In pair of key value. The optional callback parameter is the name of a function to be executed if the request succeeds. $.get (URL, data, success); Or $.post (URL, data, success); The above syntax has the following parameters and meanings: The URL required a specific parameter in which the request is sent. The jQuery get () method is used to request data from a server via an HTTP Get request. In this above ajax $.GET method example. If a request with jQuery.get () returns an error code, it will fail silently unless the script has also called the global .ajaxError () method. A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Definition and Usage. The ajax () function is used to perform an asynchronous HTTP request to the server, and by using the get () function, it gets the data from the specified URL or server. Its default value is true. The url parameter is first parameter of the $.GET method and it help to send form data from the server using Http GET request. jQuery $.get () Method The $.get () method requests data from the server with an HTTP GET request. Example: How to pass parameters in GET requests with jQuery Specify the URL to which you want to make a request, then you use this URL option. How to use GET method to send data in jQuery Ajax? If it is POST, then specify POST. In the following example, we will use . This method is mostly used for requests where the other methods cannot be used. get ajax data wit ajax call parameter ajax jquery get with parameter Ajax call params request Params ajax $.ajax get parameters ajax send query parameters get request jquery ajax get parameters how to pass parameter in get request using ajax send url as parameters get ajax ajax get request with parameters php pass parameters in get method ajax . The ajax () method is used to perform an AJAX (asynchronous HTTP) request. The second parameter is a callback function that will be executed when this GET request succeeds. Returning false in the beforeSend function will cancel the request. The ajax get () function is used to make a simple GET request. It specifies that the request is treated asynchronously by default. 3 callback \u2212 This optional parameter represents a function to be executed whenever the data is loaded successfully. Syntax: $(selector).load(url, data, callback); parameters: url required which you want to load. The possible name and value which can pass to the function are listed as below - async - It is a Boolean type. $.ajax () method allows you to send asynchronous http requests to submit or retrieve data from the server without reloading the whole page. you want to issue a get request, you specify GET. If no element is matched by the selector, the Ajax request will not be sent. 1 url \u2212 A string containing the URL to which the request is sent. Parameters The function accepts the name-value pair parameter for an ajax request. Next parameter "success" , When the HTTP GET request is succeeds. Visit james.padolsey.com/jquery and search for get () method to see the source code. Use this to set custom headers, etc. The syntax for jQuery Get is: $.get (URL, callback); The URL parameter refers to the URL you want to request and the callback parameter refers to the name of the function you are performing if the request is successful. data optional if you want to send query string or json data with request callback optional function which will be called after Ajax request completed. Syntax: $.ajax (url, [options]) The basic syntax of both methods are given below: 1. We may set its value as false for synchronous requests. The default type is GET method Try this