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 |
How we can modify the css class in jquery?
Which is the starting point of code execution in jQuery?
What is the starting point of code execution in jquery?
Can you please explain the difference between prop and attr? : jquery mobile
What are the different types of selectors in jquery?
How to fetch the values of selected checkbox array using jquery?
What is resize() function in jquery?
How to add and remove css classes to an element using ?
How to create clone of any object using jQuery?
Explain the use of jquery .each() function? : jquery mobile
Explain the use of the .pushstack() method.
What are selectors in jquery? Explain