title: Remove disabled attribute using JQuery
body: <p>I have tried following code given in JSFIDDLE...</p>
  
  <p>But it is not working...</p>
  
  <p>I want to Enable submit button only after filling all input fields....</p>
  
  <p><a href="https://jsfiddle.net/7nbnt9bL/" rel="nofollow">JSFIDDLE</a></p>
  
  <p>code tried :</p>
  
  <pre><code>&lt;script&gt;
   (function() {
     $('form &gt; input').keyup(function() {
  
      var empty = false;
      $('form &gt; input').each(function() {
          if ($(this).val() == '') {
              empty = true;
          }
      });
  
      if (empty) {
          $('#register').attr('disabled', 'disabled'); 
      } else {
          $('#register').removeAttr('disabled'); 
      }
   });
  })()
  &lt;/script&gt;
  </code></pre>