Hopefully this one is quick... How can I set an onSubmit event in the hook_form of a module?
thx
Try something like this:
function hook_form() { $form['#attributes']['onsubmit'] = 'return yourFunction()'; }
Comments
Try something like
Try something like this:
function hook_form() {
$form['#attributes']['onsubmit'] = 'return yourFunction()';
}