title: jQuery .each() with input elements
body: <pre><code>//save tablet
  jQuery("#savetablet"+jTablets[i].idtablets).on('click', function()
  {
      alert("alertsepy2...");
      console.log(jTablets[i].idtablets);
      jQuery("#tablet"+jTablets[i].idtablets+" .detailsrow").each(function( index ) {
          $(this).each(function( index2 ) {
              console.log($(this).html());
          });
      });
  });
  
  &lt;div class="column0"&gt;&lt;input type="text" value="-D"&gt;&lt;/div&gt;
  &lt;div class="column1"&gt;&lt;input type="text" value="D"&gt;&lt;/div&gt;
  &lt;div class="column2"&gt;&lt;input type="text" value="D"&gt;&lt;/div&gt;
  &lt;div class="column3"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column4"&gt; &lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column5"&gt; &lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column6"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column7"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column8"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column9"&gt; &lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column10"&gt; &lt;input type="number" value=""&gt;&lt;/div&gt;
  &lt;div id="tablet17row0" class="column11"&gt;11&lt;/div&gt;
  &lt;div class="column0"&gt;&lt;input type="text" value="-D"&gt;&lt;/div&gt;
  &lt;div class="column1"&gt;&lt;input type="text" value="D"&gt;&lt;/div&gt;
  &lt;div class="column2"&gt;&lt;input type="text" value="D"&gt;&lt;/div&gt;
  &lt;div class="column3"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column4"&gt; &lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column5"&gt; &lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column6"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column7"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column8"&gt;&lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column9"&gt; &lt;input type="number" value="0"&gt;&lt;/div&gt;
  &lt;div class="column10"&gt; &lt;input type="number" value=""&gt;&lt;/div&gt;
  &lt;div id="tablet17row1" class="column11"&gt;21&lt;/div&gt;
  </code></pre>
  
  <p>I have the above jQuery .each() that outputs the attached HTML to the console. In this case I want to extract the val() of only the input elements either of type text or type number. Is there some way to isolate just the input elements so I can get their values out into an array?</p>
  
  <p>Thanks in advance...</p>