title: change a value from specific row of a table
body: <p>I want to change specific row in my table, but such has some another <code>&lt;span&gt;</code>. I want to change the value in the first span. </p>
  
  <p>My code is like below:</p>
  
  <pre><code>&lt;table id="mytable"&gt;
  &lt;tr&gt;
      &lt;th&gt;Book_ID&lt;/th&gt;
      &lt;th&gt;Title&lt;/th&gt;
      &lt;th&gt;Price&lt;/th&gt;
      &lt;th&gt;Qty&lt;/th&gt;
      &lt;th&gt;Total&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;A001&lt;/td&gt;
      &lt;td&gt;my book&lt;/td&gt;
      &lt;td&gt;10000&lt;/th&gt;
      &lt;td&gt;
              &lt;span&gt;3&lt;/span&gt;
              &lt;span&gt;&lt;a&gt;delete&lt;/a&gt;&lt;/span&gt;
              &lt;span&gt;
                &lt;a href=# title="plus_qty"&gt;&lt;img src="quantity_up.gif"&gt;&lt;/a&gt;
              &lt;/span&gt;
              &lt;span&gt;
                &lt;a href=# title="minus_qty"&gt;&lt;img src="quantity_down.gif"&gt;&lt;/a&gt;
              &lt;/span&gt;
      &lt;/td&gt;
      &lt;td&gt;30000&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Without deleting <code>&lt;span title="plus_qty"&gt;</code>, and <code>&lt;span title="minus_qty"&gt;</code> or without <code>&lt;span&gt;</code> in <code>&lt;td&gt;</code> I can get and update a qty value. This my code without deleting the elements:</p>
  
  <pre><code>&lt;table id="mytable"&gt;
  &lt;tr&gt;
      &lt;th&gt;Book_ID&lt;/th&gt;
      &lt;th&gt;Title&lt;/th&gt;
      &lt;th&gt;Price&lt;/th&gt;
      &lt;th&gt;Qty&lt;/th&gt;
      &lt;th&gt;Total&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;A001&lt;/td&gt;
      &lt;td&gt;my book&lt;/td&gt;
      &lt;td&gt;10000&lt;/th&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;30000&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt; 
  </code></pre>
  
  <p>jQuery code:</p>
  
  <pre><code>var row = $('#mytable').find('td');
  for(i=0;i&lt;row.length;i++){
     if(row.eq(i).text() == 'A0001'){
         row.eq(i+3).text(parseInt(row.eq(i+3).text())+1);
     }
  }
  </code></pre>