can somebody please explain the function of jsonp=? in this Ajax GET request?
$(document).ready(function(){
$.ajax({
url: "https://api.forismatic.com/api/1.0/?",
data: "method=getQuote&format=jsonp&lang=en&jsonp=?",
success: function(data){
$(".message").text(data.quoteText);
},
dataType: "jsonp"
});
});
Here's a link of this in action: https://codepen.io/ltcMatt/pen/VWeoMW.
Thanks in advance.
Cheers