Web technologies Questions | jQuery Quiz | Set-1 | Question 6
Which of the below method is used to get the JSON data using HTTP requests?
(A) jQuery.getScript( url, [callback] )
(B) jQuery.post( url, [data], [callback], [type] )
(C) jQuery.post( url, [type] )
(D) jQuery.getJSON( url, [data], [callback] )
Answer: (D)
Explanation: The jQuery.getJSON takes 4 parameters URL, data, callback, and type which is used to load the JSON data.
Quiz of this Question
Please comment below if you find anything wrong in the above post