What are various methods to make ajax request in jQuery?
Answer / chaitanya
Using below jQuery methods, you can make ajax calls.
load() : Load a piece of html into a container DOM
$.getJSON(): Load JSON with GET method.
$.getScript(): Load a JavaScript file.
$.get(): Use to make a GET call and play extensively with the response.
$.post(): Use to make a POST call and don't want to load the response to some container DOM.
$.ajax(): Use this to do something on XHR failures, or to specify ajax options (e.g. cache: true) on the fly.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why jQuery is better than JavaScript?
Explain the difference between size and length of jquery?
How to include jquery library in asp.net project?
Explain bind() vs live() vs delegate() methods.
Explain some features of jquery knockout?
How to check data type of any variable in jQuery?
Which version of jquery file should be used?
Explain the difference between javascript and jquery? : jquery mobile
How to multiple AJAX requests be run simultaneously in jQuery?
What is the use of jQuery filter?
Tell me how to check if number is numeric while using jquery 1.7+? : jquery mobile
How to get the direct parent of an element using ?