I have a page with this code:
<span class="cbCoreFieldsAjaxValue">
<label id="hidetodo1" style="color: #e05817;">
<strong>Click here</strong>
</label>
</span>
When user click (is an Ajax link), the code become this:
<span class="cbCoreFieldsAjaxValue" style="display: inline-block;">Yes</span>
I would like perform a page reload/refresh when the value is Yes. I suppose is necessary to use something like this:
if {
document.getElementById('hidetodo1').value="Yes";
location.reload();
}
but this of course don't work because my knowledge of javascript are too poor :-(
I don't have access to all html but I can make some modification if needed.
Somebody can help please ?
Thank