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 to get the direct parent of an element using ?
What is jquery.noconflict? Explain
Explain the use jquery.data method?
Explain the script build up by jquery?
How to use it jquery knockout?
How can you add a jquery library in your project?
When can jquery be used?
Explain some benefits of jquery knockout?
How we can get the value of a radio button using jquery?
How to concatenate two strings using jquery?
How to delete cookies in jquery?
What is the minimum setup needed to start using jquery.