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 |
How do you disable or enable a form element?
Explain some of the key concepts of good code organization patterns.
What is jquery toggle function?
What is the use jQuery.data method?
And finally, if you could give one tip to any new budding jquery ui developers, what would it be?
Jquery can be used in what scenarios?
What is the difference between prop and attr?
What is cdn and how jquery is related to it?
How jQuery selectors are executed?
What is the use of css() method in jquery?
Which one is more efficient, document.getElementbyId( "myId") or $("#myId)?
Explain the use of the .pushstack() method.