title: Enable button after input text field generated by jquery is filled
body: <p>Adding of text field are generated by jquery. I just want to enable the submit button after the input text field are typed in. Thanks. Here's the code: <a href="https://jsfiddle.net/akoni/kL8jdpdc/" rel="nofollow noreferrer">https://jsfiddle.net/akoni/kL8jdpdc/</a></p>
  
  <p>I tried this code, but no luck.</p>
  
  <pre><code>(function() {
  $('form &gt; input').keyup(function() {
  
      var empty = false;
      $('body').find('input[type="text"]').each(function() {
          if (($(this).val() == '')) {
              empty = true;
          }
      });
  
      if (empty) {
          $('#submit').attr('disabled', 'disabled');
      } else {
          $('#submit').removeAttr('disabled');
      }
  });
  })()
  </code></pre>