How can I modify the default values of options for the $.ajax() function?
Ideally to do something similar to:
//set ajax async to false $(someSelec
You want ajaxSetup
$.ajaxSetup({ url: "/xmlhttp/", global: false, type: "POST" }); $.ajax({ data: myData });
Try using $.ajaxSetup()
$.ajaxSetup({ async: false });