That I try to do : Click on a button, sleep, change the label to "Run", sleep , change the label "OK"
I have a button ( #runajax) with click event function. I have a table with label:
<table class="table table-bordered">
    <tbody>
        <tr>
            <td >Status Global </td>
            <td align="center"><label id="Status">FieldToUpdate</label></td>
        </tr>
    </tbody>
</table>
Javascript :
function setStatusRun(runType )
{
    $("#Status" + runType).text("running....");
}
function setStatusOK(runType )
{
    $("#Status" + runType).text("OK");
}
$(document).ready(function () {
    // initialize the viewer
    $('#runajax').click(function (event) {
        resetStatus();
        setStatusRun("");
        sleep(3000);
        setStatusOK("");
        sleep(3000);
        event.preventDefault();     
    });
});
But I can see only the final update, not the intermediate value of the label.
Someone can help me ?
 
     
     
    