Jquery variabile change
<p>How I can show the second alert from the following code after the first showed?!</p>

<pre><code>var s = 1;

 $(document).ready(function(){

     if(s == 1 )
     {
         alert("SIMULATED");
         s = 0;
     }
     else alert (" ok ");


});
</code></pre>

<p>I need to change the s variable to 0 and to show alert("ok") after the first alert showed</p>
