Help with jQuery functions executing prematurely
<p>I have a click function: </p>

<pre><code>jQuery("#element").click(function(e){

        var op = jQuery("#box").GetOp();
  op.flag1 = false;
        op.flag2 = true;
  executeFunction();
  jQuery("#box").reload();

 });
</code></pre>

<p>I want the functions executeFunction(); and jQuery("#box").reload(); to execute in serial order only after the previous two lines are executed. </p>

<p>EDIT: The functions should execute synchronously.</p>

<p>Other threads have suggested using callbacks, but I'm not sure how I can use it in my case.</p>

<p>Any suggestions?</p>
