title: Uncheck row checkbox if inputs are empty on blur?
body: <p>I have 2 issues here. Clicking an input on a row should check the row's checkbox. Currently, only the first text input will check the checkbox because of .prev(). Is there a different way to do this? All inputs for that row should check that row's checkbox.</p>
  
  <pre><code>// check checkbox for clicked row
              $('table').on('click', 'input[type=text]', function () {
                  $(this).closest('td').prev().find('input').prop('checked', true);
              });
  </code></pre>
  
  <p>Also, the second block of code isn't working as it should. If you focus on a different row, if the text inputs from the previous (or any) row are blank - remove the checkbox. The checkbox will be a save, and there is no point of saving blank text inputs.</p>
  
  <pre><code>// remove check in inputs are empty for that row
              $('input[type=text]').blur(function () { 
                  $('table tr').each(function () {
                      if ($(this).find('input[type=text]:empty').length()) {
                          $('td').find('input').prop('checked', false);
                      }
                  });
              })
  </code></pre>
  
  <p><a href="http://jsfiddle.net/Ldge5qzn/" rel="nofollow">http://jsfiddle.net/Ldge5qzn/</a></p>