update table cell using jquery
<p>ok, so I have a table with the following:</p>

<pre><code>&lt;table id="servertable"&gt;
     &lt;tr&gt;
     &lt;th scope="col"&gt;Server Name&lt;/th&gt;&lt;th scope="col"&gt;Location&lt;/th&gt;&lt;th scope="col"&gt;Status&lt;/th&gt;
     &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;servername1&lt;/td&gt;&lt;td&gt;pathtoserver1&lt;/td&gt;&lt;td&gt;Unknown&lt;/td&gt;&lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt;servername2&lt;/td&gt;&lt;td&gt;pathtoserver2&lt;/td&gt;&lt;td&gt;Unknown&lt;/td&gt;&lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt;servername3&lt;/td&gt;&lt;td&gt;pathtoserver3&lt;/td&gt;&lt;td&gt;offline&lt;/td&gt;
     &lt;/tr&gt;
    &lt;/table&gt;
</code></pre>

<p>and am trying to update status of a server (using jquery) based on the "pathtoserver", say, the javascript function receives, 
"pathtoserver2" and "online".
I would like to located the server in the table and replace the value "Unknown" or whatever there might be with "online".</p>

<p>I've tried something such as this:
$('#servertable td').find("#" + server); - to find the server, but that's looking for id, so, I'm not sure whether I need to assign an id to the  containing the "pathtoserver" values, 
or if there some way to use ".each(function(..)" construct to located it and consequently update it.</p>

<p>so I used this: <code>$('#servertable td:contains(' + server + ')')</code></p>

<p>and this almost works, except that I need to find exact match, so I change it to:</p>

<pre><code>$('#servertable td:eq(' + server + ')')
</code></pre>

<p>However now, it only finds the first one (I think), how do I find all exact matches?</p>
