title: how to validate text box in generated html table (grid)
body: <p>I need to validate the value for each text box in a generated html table (grid). When I click the save button it will look all the textbox controls and validate if it contains a value or not. Any help is high appreciated.</p>
  
  <p>HTML Code</p>
  
  <pre><code>&lt;table class="dynamictable"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th style="display: none"&gt;&lt;/th&gt;
                      &lt;th&gt;Package Name&lt;/th&gt;
                      &lt;th&gt;Package Cost&lt;/th&gt;
                      &lt;th&gt;No. of Attendees&lt;/th&gt;
                      &lt;th&gt;Delete&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr class="prototype"&gt;
                      &lt;td style="display: none"&gt;&lt;input type="hidden" name="id[]" value="0" class="id" /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="packagename[]" value="" /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="packagecost[]" value="" /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="noofattendees[]" value="" /&gt;&lt;/td&gt;
                      &lt;td&gt;@Html.ActionImage("", null, "~/Content/Images/delete.gif", "Delete", new { @class = "deleterows" }) &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  </code></pre>