Reputation: 920
Can we specify a Javascript function to be called after the AJAX request from a Drupal AHAH form is completed?
Upvotes: 1
Views: 756
Reputation: 83
A little late to the party but you can use:
$(document).ajaxComplete(function() {
// custom JS here
});
Upvotes: 0
Reputation: 1912
I don't think there is a clean way to do this.
Try including a script element when returning html to be inserted in the dom.
Upvotes: 2