What are various methods to make ajax request in jQuery?
Answer Posted / 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 |
Post New Answer View All Answers
Tell me how to select combobox select value and text using jquery?
How to get the direct parent of an element using ?
Which version of jquery file should be used?
Is vanilla js faster than jquery?
Explain some features of jquery knockout?
What to do to select element having a particular class (".selected")? : jquery mobile
Difference between event.PreventDefault and event.stopPropagation?
How can we show and hide an element via jquery?
How do you select an item using css class or id and get the value by use of jquery.
Define jquery connect?
How to submit a form without submit button using jquery?
Hide and show image on button click using jQuery?
How do you install/use jquery in a project.
What is the difference between prop() and attr() in jquery?
What are the advantages of minified version of jquery?