title: Disable and Enable submit button in jquery
body: <p>I am using jquery to disable the submit button and load loading image,</p>
  
  <p>In submit button I am using the folowing : <br/></p>
  
  <pre><code>&lt;div id="registerbtn" name="registerbtn"&gt;
  &lt;input type="submit" class="btn btn-primary" icon="ok white" value="Register" id="register" name="register"/&gt;
  &lt;/div&gt;
  &lt;div class="span4" style="display:none;" id="loadingtext"&gt;
                              &lt;?php echo  $imghtml=CHtml::image('images/loading.gif');?&gt;                      
                          &lt;/div&gt;
  </code></pre>
  
  <p>and in JQuery, I am using following code :</p>
  
  <pre><code>$(document).ready(function() {
  
      $('#register').click(function() {
          $('input[type="submit"]').attr('disabled','disabled');
  
       });
          $("#loadingtext").show();
      });
  });
  </code></pre>
  
  <p>When I do this, then this button is disabled permanently, but if I want to remove then what should I do ??</p>