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
How we can get the value of a radio button using jquery?
How do I check if an element is hidden in jQuery?
How to set jquery mobile responsive table width to 100% width despite css styles? : jquery mobile
Define jquery filter?
Explain url paremeter of jquery ajax method?
What are the advantages of jQuery?
What is eq()? : jquery mobile
What is the need for jquery? : jQuery Mobile
How to submit a form without submit button using jquery?
How to check or uncheck all checkboxes using jquery?
Difference between find() and closest() in jquery?
Mention some advantages of jquery.
Tell me how to executed jquery selectors? : jquery mobile
How to debug jquery code/ debug jquery?
Why is jquery better than javascript?