title: How to read table values in text?
body: <p>I am tryig to read from the textboxes in a table.  How can I do it?  I have the following code, but it`s not working.</p>
  
  <pre><code>&lt;table id="dataTable"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Value&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;input id="Name" type="text" value = "test1" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input  type="text" value = "test11" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input  type="button" value = "button11" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>My actual script is as follows:</p>
  
  <pre><code>$(document).ready(function() {
      $("#Click").click(function() { 
          var i = 0;
          var inputs = new Array();
          $("#dataTable tr").find("input").each(function() {
              alert($(this.value));
              alert($(this.id));
              inputs[i] = [this.id, this.value];
              i++;
          });
  
          var columnsCount = $("#dataTable").find("th").length;
          alert($(columnsCount));
      });
  });
  
  &lt;input type="button"  id= "Click" value="Click" /&gt;
  </code></pre>