title: Javascript jQuery not executing after .is(":checkbox") check?
body: <p>So I have a click event that loops through the items of an html table and saves them to an array.  I am attempting to identify if the passed value is a checkbox which seems to be working correctly.  However when I add the check the code won't fully execute after it hits the check?  (The ajax code is never reached.)  Am I missing something here? Searching other posts one suggestion was to move the declaration of my checked variable outside the each statement which I did.  Any help is greatly appreciated.  </p>
  
  <pre><code>$("#btnSubmit").click(function () {
      var valueArray = [];
      var headers = [];
      var dataToSend;
      var checked = null;
      var arrayItem = {};
      $('#table th').each(function (index, item) {
          headers[index] = $(item).html();
      });
      $('#table tr').has('td').each(function () {
          $('td', $(this)).each(function (index, item) {
              arrayItem[headers[index]] = $(item).html();
  
  
              checked = $(arrayItem[headers[index]]).is(":checkbox");  
  
          });
          valueArray.push(arrayItem);
          dataToSend = JSON.stringify(valueArray);
      });
      $.ajax({
          type: "POST",
          url: '@Url.Action("SaveTable", "Home")',
      dataType: "json",
      data: dataToSend,
      contentType: "application/json; charset=utf-8",
  
      });
    });
  </code></pre>