title: Ajax query string conditional
body: <p>I have created a login page that uses ajax to log the user in and validate the credentials.</p>
  
  <p>If a user has been disabled then i want to show a message saying the user is disabled. When i POST via jquery i post to a page called admin-ajax.php</p>
  
  <p>if the user was disabled, i get a return url of /wp-login?disabled=1
  <img src="https://i.stack.imgur.com/5LPSa.png" alt="enter image description here">
  How can i modify my script to see if the GET has disabled on it, and if it does then change the button text.</p>
  
  <pre><code>jQuery('#wp-submit').on( 'click',function(){
  
      var clicked = jQuery(this);
  
  
      clicked.val('Logging In...');
  
      var commit = clicked.parent().parent().serialize();
  
      var data = {
          action: 'ts_dash_action',
          screen: 'sign_on',
          param: { form : commit
             /* log: 'admin', pwd: 'pass','wp-submit': 'Log In',redirect_to: 'http:/.beresponsive.net',testcookie:1*/
          }};
  
      jQuery.post(dash_ajax.ajaxurl, data, function(response) {
          //clicked.val(response);
          if(response == 'Error - Retry') {
              clicked.addClass('button-error');
              setTimeout(function(){
                  clicked.val('Login');
                  clicked.removeClass('button-error');
              },2000);
          } else if(response == 'Redirecting...'){
              window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
              window.location = window.location.origin;
          } else if ([THE GET HAS A PARAMATER OF 'DISABLED']) {     
                  clicked.addClass('button-error');
                  clicked.val('Email no valid')
          } 
  
      });
      return false;
  }); 
  </code></pre>
  
  <p>Here is the page, <a href="http://goo.gl/5j1lEx" rel="nofollow noreferrer">http://goo.gl/5j1lEx</a>, the disabled account is username: dis, pass: dis</p>