I have a custom module, this module has a form with an ajax submit callback
$form['submit'] = array(
'#type' => 'submit',
'#ajax' => array(
'callback' => 'mymodule_submit_driven_callback',
'wrapper' => 'box',
),
'#value' => t('Submit'),
);
I into the callback function I need to call a JQuery function:
function mymodule_submit_driven_callback($form, $form_state) {
//call JQuery function here
}
How can I do this? Thanks.