How to execute some js code after click on exposed filter AJAX enabled submit? I have tried to update the input value of an exposed filter field before submit of the exposed filter through Js.

What I have tried 

$('#edit-submit-phrases').on('click', function() {
  alert('check'); 
});


No alert message.

I also tried:

jQuery('#edit-submit-phrases').mousedown()
You can use the ajaxStart() function, to execute something before  Ajax request begins:

 Drupal.behaviors.&lt;themename/modulename&gt; = {
  attach: function (context, settings) {
    $('#edit-submit-phrases').on('click', function() {
      $( document ).ajaxStart(function() {
        alert('check'); 
      });
    });
  }
};