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 |
Explain animate function in jquery?
What is the script build up by jQuery?
How to divide a page into parts using jquery mobile? : jquery mobile
What is difference between .setinterval() and .delay() ?
What are the difference between alert() and confirm()?
How to disable/enable an element in jquery?
How can we apply css in odd childs of parent node using jquery library?
What are the advantages of jQuery?
How to use migrate jquery plugin if possible? : jquery mobile
What is the difference between prop() and attr() in jquery?
What are selectors in jquery?
What are jquery selectors?