title: Get first cell value of each row in table
body: <p>Please help me to get first cell value of each row in table by click delete button, the below codes display cell values for all the cells. The table is generated by Ajax success function. So the table does not exist on page on-load. </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
       $("#mytable td").click(function() {
       alert($(this).html());
       });
   });
  
  &lt;/script&gt;
  
  
   //html table , this is sample table , 
  
   &lt;table border="1" id="mytable"&gt;
    &lt;tr&gt;
      &lt;th&gt;Customer Id&lt;/th&gt;
      &lt;th&gt;Action&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;0001&lt;/td&gt;
      &lt;td&gt;&lt;button&gt;Del&lt;/button&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;0002&lt;/td&gt;
      &lt;td&gt;&lt;button&gt;Del&lt;/button&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;0003&lt;/td&gt;
      &lt;td&gt;&lt;button&gt;Del&lt;/button&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>