Form inputs being disabed during the Ajax request I'm working on a module where I have a form inside of a block, I'm using Ajax to submit the form, but I noticed that the form's inputs are disabled when sending a request with Ajax. Well in my case I want to keep using the form's input (keyup event) and displaying the result for each request.

// my current code
$form['combine'] = array(
    '#type'       =&gt; 'textfield',
    '#size'       =&gt; 255,
    '#maxlength'  =&gt; 128,
    '#attributes' =&gt; array('placeholder' =&gt; 'Search'),
    '#ajax'     =&gt; array(
        'callback'  =&gt; 'ajax_filter_callback',
        'effect'    =&gt; 'fade',
        'wrapper'   =&gt; 'result-content',
        'event'     =&gt; 'keyup',
    ),
);
That functionality is built-in so you'll need to monkey-patch Drupal.ajax.prototype.beforeSend (found in misc/ajax.js).

Copy the entire code, but remove/modify this line:

$(this.element).addClass('progress-disabled').attr('disabled', true);


So in your module or theme's JS file:

Drupal.ajax.prototype.beforeSend = function(xmlhttprequest, options) {
  // Place all code from the original function here, except the line above.
}


YMMV, you may unwittingly introduce unexpected behaviour by not waiting for each request to complete.