I have two function in Jquery , i am calling it one by one. please find below code for example..
CheckDuplicateUsers ();
ManageUsers();
First CheckDuplicateUsers() function will get call and ManageUsers() function should get call once first function get complete execution.
My issue is before completing first function its going to another function. i want to resolve this.
Kindly help me for this as i am new in Jquery.

Anubhav ChaudharyPosted Dec 18, 2014, 7:39 AM
I think you are calling a webmethod using jquery and ajax call, if this is the case then I would like to tell you that firstly all the jquery is executed and after that it goes to the code behind i.e. in the webservice or at the .aspx page. This means that if you are calling 2 functions one by one and you are making ajax call then your ajax call will be made after executing the jquery part on second function. In that case you need to call the second function at the end of success of Ajax call.
If this is not the case then show me the first function which you are calling i.e. CheckDuplicateUsers().
Anubhav ChaudharyPosted Dec 18, 2014, 12:40 PM
Abhijit KakadePosted Dec 18, 2014, 8:45 AM
Thanks lot.. As per your reply i did the same and its working perfect now.