In JS file have multiple ajax calls,so I would like to call one AJAX call with multiple callback functions.can any one help me how to call multiple AJAX calls.Here is test code,
$.ajax({
url : url,
dataType : 'json',
success : test1(data)
});
$.ajax({
url : url,
dataType : 'json',
success : test2(data)
});
It is working fine,can you please help me how we can call both ajax calls in one.
success : test1(data)andsuccess : test2(data)cannot 'working fine' !