modify jquery datatable automatically instead of on click
<p>I have a jquery datatable which allows me to modify cells onclick using this function</p>

<pre><code>$(document).ready(function () {
     $('td').click(function () { 
         var aPos = oTable.fnGetPosition(this);
         var aData = oTable.fnGetData(aPos[0]);
         var retrievedEntry = aData[aPos[1]];
         this.innerHTML = '10'; 
     });

     oTable = $('#myHTMLTable').dataTable();
 }); 
</code></pre>

<p>however what i would like to be able to do is to modify the contents of a column based on the entries in the cells of other columns. So if i have "name" and "age" column, if the name == "John" then update age cell data to 10 and if name == "Mike" then update age to say 11;</p>
