title: how to take span value which inside <td>(table data),when click button that also inside <td>
body: <p>i cant understand how to take inside table <strong>span</strong> id value and also <strong>span</strong> text when click a button that also in same row </p>
  
  <p>my html code is </p>
  
  <pre><code>&lt;div&gt;
  &lt;table id="t1" style="border:1px solid"&gt;       
      &lt;tr&gt;&lt;td&gt;&lt;span id="city"&gt;Chikago&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span&gt;USA&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;button class="show"&gt;Show me&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span id="city"&gt;London&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span&gt;UK&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;button class="show"&gt;Show me&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span id="city"&gt;Delhi&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span&gt;INDIA&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;button class="show"&gt;Show me&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>using jquery,i am trying to take 2bd row,2nd column  value when click the  button of 2nd row but i cant understand how to select tanle roes,columns data.</p>
  
  <p>thats why i cant write jquery code.</p>
  
  <p>please give a proper jquery code for this problem.</p>