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 the difference between $(this) and 'this' in jquery?
What are the different types of selectors in jquery?
How to check if number is numeric while using jquery 1.7+? : jquery mobile
What is the use of serialize method in jQuery?
What is the difference between prop and attr?
Tell me does jquery 2.0 supports ie? : jquery mobile
How can jquery library be added to pages? Write a basic jquery code?
What is the use of toggle() method in jquery?
How to use jquery?
What is the advantage of using the minified version of jquery rather than using the conventional one?
Is jQuery a library for client scripting or server scripting?
Create a plugin that would add and remove a class on hover.