Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implements hook_form_alter().
- */
- function MYMODULE_form_views_exposed_form_alter(&$form, &$form_state) {
- // Get the submission button ID
- $submit_btn_id = $form['submit']['#id'];
- $form['reset']['#attributes'] = array('onclick' => "javascript:jQuery(this.form).clearForm();jQuery(this.form).find('#$submit_btn_id').trigger('click');return false;");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement