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 |
What is jQuery.noConflict?
Which program is useful for testing jQuery?
What is the use of jQuery.ajax method ()?
What is the difference between prop() and attr() in jquery?
Define data paremeter of jquery ajax method?
What is the use of delegate() method in jquery?
Explain animate function in jquery?
How do you check or uncheck a checkbox input or radio button?
Difference between $(this) and 'this' in jQuery?
What is the use of delay() method in JQuery?
What is the difference between event.PreventDefault and event.stopPropagation?
What is jquery datepicker in jquery?