Manipulating row data with Javascript
<p>I have a specific question, I have a link in a table in the third column of each row, when the user clicks that link he loads some ajax and updates the page, what I want to also happen is that in the 2nd column of the row where the link is, change the td's class from false to true, and the value from No to Yes.</p>

<p>Thanks!</p>

<p><strong>Update!
Code Example:</strong></p>

<p>The 2nd column still doesn't get updated on click, perhaps this is because the div where the table is located gets hidden onclick? Anyways here's what I've tried:</p>

<pre><code>&lt;tr&gt;
  &lt;td&gt;00839&lt;/td&gt;
  &lt;td class="false"  style="text-align:left;"&gt;No&lt;/td&gt;
  &lt;td&gt;      
    &lt;a href="#" 
       onclick="Element.hide('ajax-instruction-view');; 
       new Ajax.Updater('ajax-instruction-view', '/tasks/show_ajax/839', {asynchronous:true, evalScripts:true, onComplete:function(request){new Effect.Appear(&amp;quot;ajax-instruction-view&amp;quot;,{});window.scrollTo(0,0);
       link = $(link);
       var row = link.up('tr');
       var cell = row.down('td').next('td');
       cell.update('Yes');},
       parameters: 'authenticity_token='encodeURIComponent('SYWsdBTWlz17u9HmPXA2R9WmBfZn67g/IAMGyhHEwXw=')}); return false;"
    &gt;
      Instructions-Notice Board
    &lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;19/04/10&lt;/td&gt;
  &lt;td class="false"&gt;21/04/10&lt;/td&gt;
  &lt;td class="false"  style="text-align:left;"&gt;None.&lt;/td&gt;
&lt;/tr&gt;
</code></pre>
