Looping issues? jQuery <p>I have a dynamic table which has three textboxes and a select dropdown in each row that is added. On the click of a button, more rows can be added dynamically. Once I click submit I want to the loop through each cell but in the tbody section ONLY; when trying the loop is just skipped over. I have already tried debugging in console but no issues were found.</p> <p>Here is my HTML:</p> <pre><code>&lt;table id= "tb1" class="norm sideBG" name="recordTable" align="center" cellpadding="4" cellspacing="0" border="1" bordercolor="lightgrey" width="600px"&gt; &lt;tr class="norm"&gt; &lt;td&gt; &lt;b&gt;&lt;u&gt;LMV PART #&lt;/u&gt;&lt;/b&gt; &lt;/td&gt; &lt;td&gt; &lt;b&gt;&lt;u&gt;LOCATION&lt;/u&gt;&lt;/b&gt; &lt;/td&gt; &lt;td&gt; &lt;b&gt;&lt;u&gt;QUANTITY&lt;/u&gt;&lt;/b&gt; &lt;/td&gt; &lt;td&gt; &lt;b&gt;&lt;u&gt;WHERE USED&lt;/u&gt;&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tbody class="theRow" id="theRow"&gt; &lt;tr&gt; &lt;td class="norm"&gt; &lt;label id="partLabel" style="color : red;"&gt;&lt;/label&gt; &lt;br /&gt; &lt;input type='text' name='txtbox0[]' id='txtbox0[]' onchange="javascript: changeLabel(this)" /&gt; &lt;/td&gt; &lt;td class="norm"&gt; &lt;select id="txtbox1[]" name="txtbox1[]" &gt; &lt;% strSQL1 = "myQuery" Set oRs1 = oConn1.Execute(strSQL1) Do while not oRs1.eof Response.Write("&lt;OPTION VALUE='" &amp; Mid(oRs1(0),4) &amp; "'") Response.Write("&gt;" &amp; Mid(oRs1(0),4) &amp; "&lt;/OPTION&gt;") oRs1.movenext loop oRs1.Close oConn1.Close %&gt; &lt;/select&gt; &lt;/td&gt; &lt;td class="norm"&gt; &lt;input type='text' name='txtbox2[]' id='txtbox2[]' /&gt; &lt;/td&gt; &lt;td class="norm"&gt; &lt;input type='text' name='txtbox3[]' id='txtbox3[]' /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Along with my jQuery loop which is processed on submit()</p> <pre><code>var cellVal; $("#tb1 &gt; tbody.theRow &gt; tr").each(function() { cellVal = $(this).text(); if (cellVal.length == 0 || cellVal == null) { alert("there's a blank field"); blankFields = true; } }); </code></pre>