ajax post success question
Hello,
My problem is that I want to run an external function outside the post. This is what I have currently.
- $.ajax({
type: "POST",
url: "<?php echo site_url('bid_builder/save_add_cost') ?>",
data: dataString,
success: function() {
setGrandTotal();
}
});
On success of the post I want to run the setGrandTotal(); function which will do some calculating for me. Can this be done?
Thanks for any help on this.
Damian.