I have used $.ajax function to fetch data from C# in asp.net MVC3.0, Now I want is to get the value from the success function of $.ajax and used it in another function defining global variable and putting the result in it is not working so please let me know how can I get the value.
Share
Invoke a callback function from within the
successfunction. Most likely you are treating everything as synchronous when infact Ajax is asynchronous.Low down dirty way would probably be to specify
async:false