Reload page if specific text value is changed
<p>I have a page with this code:</p>

<pre><code>&lt;span class="cbCoreFieldsAjaxValue"&gt;
&lt;label id="hidetodo1" style="color: #e05817;"&gt;
&lt;strong&gt;Click here&lt;/strong&gt;
&lt;/label&gt;
&lt;/span&gt;
</code></pre>

<p>When user click (is an Ajax link), the code become this:</p>

<pre><code>&lt;span class="cbCoreFieldsAjaxValue" style="display: inline-block;"&gt;Yes&lt;/span&gt;
</code></pre>

<p>I would like perform a page reload/refresh when the value is Yes. I suppose is necessary to use something like this:</p>

<pre><code>if {
document.getElementById('hidetodo1').value="Yes";
location.reload();
}
</code></pre>

<p>but this of course don't work because my knowledge of javascript are too poor :-(</p>

<p>I don't have access to all html but I can make some modification if needed.</p>

<p>Somebody can help please ?</p>

<p>Thank</p>
