jQuery selecting text and find file
<p>My title doesn't explain this well. What I am trying to do design is a php table which loops mysql data. I want it to then select the text in the 2nd colspan and replace it with an image.</p>

<p>All the images are stored in a folder images/clients</p>

<p>Lets say the client is called tesco. So what happens is the table loops out the text tesco and I want jQuery to replace that text with the image tesco.png. Instead of writting out many lines over and over I want to have one line which can do this.</p>

<p>I know this is wrong but hopefully gives you an idea what I am trying to achieve.</p>

<pre><code>$('tr td:nth-child(2):contains()').replaceWith('&lt;img src="images/clients/$(this).png" /&gt;');
</code></pre>

<p>Thanks</p>
