Can anyone tell me how I can execute my custom jQuery code when Drupal's ajax code finishes?
The context is a Drupal module which displays a form. One of the form components is a select list displayed with the following code:
$form['selected'] = array(
'#type' => 'select',
'#title' => t('add to sequence ...'),
'#options' => $types,
'#default_value' => $types['select'],
'#description' => t('Select an option.'),
'#ajax' => array(
'callback' => '_ajax_selected_node_callback',
),
);
Drupal correctly calls _ajax_selected_node_callback each time an option is selected. I need to execute my custom jQuery code immediately after the select list AJAX callback finishes.