I am looking for a way to expand an existing Jquery function to give it more options/parameters.
The one I want to use is $.ajax but this could apply to any jquery function.
I want to be able to call a function like this:
$.adv_ajax()
Which would be an extended version of the $.ajax function like as follows:
$.adv_ajax({
custom_parameter: "abc", //my custom one
url: "test.html",
context: document.body,
success: function(){
$(this).addClass("done");
}
});