Hi I am using #ajax in my custom form. I need a response handler function for my form in jquery. How can i acheive this goal?
For example:
$form['changethis'] = array(
'#type' => 'select',
'#options' => array(
'one' => 'one',
'two' => 'two',
'three' => 'three',
),
'#ajax' => array(
'callback' => 'ajax_example_simplest_callback',
'wrapper' => 'replace_textfield_div',
),
);
Here i have the ajax_example_simplest_callback in php. I need a response handler in js.