Fairly new to jQuery, could I just check that the following two are functionally equivalent:-
and
Where...
getQuickCallslist is a div to receive the contents of the url
data is a structure of form element, value pairs.
actionQuickcall is a separate function that needs to run on completion of the .load
Many thanks.
Code:
jQuery("#getQuickCallslist").load(url, data, actionQuickcall);
Code:
jQuery("#getQuickCallslist").load(url, data, function(){actionQuickcall()});
Where...
getQuickCallslist is a div to receive the contents of the url
data is a structure of form element, value pairs.
actionQuickcall is a separate function that needs to run on completion of the .load
Many thanks.