replacing text in template rendered by django
<p>I have a template that grabs values from a database and displays the data using template tags. The values returned are 0 &amp; 1 and I can;t really control that so I am trying to get some jquery to change the values so 0 = 'no' and 1 = 'yes'</p>

<p>I have got this code working here <a href="http://jsfiddle.net/a9cvx/236/" rel="nofollow">http://jsfiddle.net/a9cvx/236/</a></p>

<p>Using this </p>

<pre><code>$(document).ready(function() {
    $("body").html($("body").html().replace(/0/g,'&lt;b&gt;abcde-fghi&lt;/b&gt;'));
    $("body").html($("body").html().replace(/1/g,'&lt;b&gt;yes&lt;/b&gt;'));
)};
</code></pre>

<p>Here is my template code.</p>

<pre><code>...
&lt;tr&gt;
   &lt;td&gt;Reboot VM&lt;/td&gt;
   &lt;td&gt;{{ col.t_rebootvm }}&lt;/td&gt;
   &lt;td&gt;waiting&lt;/td&gt;
&lt;/tr&gt;
....
</code></pre>

<p>so {{ col.t_rebootvm }} comes from the database and would equal 0 or 1.</p>

<p>I can see my jquery js file is within the page source code when the html is loaded. 
But when I use this jquery code in my template, the values do not change. Is this because the template is being rendered and the value 0 or 1 isn't available on load? Is this something else?</p>

<p>Many thanks - Oli</p>
