jQuery.ajaxSetup()The jQuery.ajaxSetup() method in jQuery is used to set up default values for the future Ajax requests.
jQuery.ajaxSetup() syntaxjQuery.ajaxSetup(options)
options is a set of key/value pairs that configure the default Ajax request.
jQuery.ajaxSetup() exampleSets the defaults for Ajax requests
$.ajaxSetup({
url: "/xmlhttp/",
global: false,
type: "POST"
});
$.ajax({ data: myData });
