Java script function to hold until save evenet execution is completed
<p>I have a javascript function. In thi function i am calling a button event like below.</p>

<pre><code>$("#btnSave").trigger("click");
</code></pre>

<p>My query is , Is there any way to keep the control here on this line until the saving is done?
 I have some code written underneath this line and it is being overridden.</p>

<p>Any suggestions?</p>
