title: Get the values of textbox having same Id in a table using jquery?
body: <pre><code>&lt;table class="csstable"&gt;
      &lt;tr&gt;
         &lt;td&gt;
         &lt;textarea id="txtOption" rows="2" cols="30"&gt;hi this is me!!!&lt;/textarea&gt;
         &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
         &lt;textarea id="txtOption" rows="2" cols="30"&gt;hi this is you!!!&lt;/textarea&gt;
         &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>What i did:</p>
  
  <pre><code>  $(".csstable").each(function(){
         alert($("#txtOption").val());
        });
  </code></pre>
  
  <p>I am getting the first value of text area at both time ie.<strong>hi this is me!!!</strong></p>