I have 2 ajax call in 2 difference functions. I want to use .click to call these 2 functions . The func1 is inserting data in to database, then func2 is to retrieve the data
You can set the option "async" to false (for the first ajax call).
This means that function 2 will be called after function 1 has received a response, i.e. finished it's execution.
function func1(){ $.ajax({ url:'', async: false }); });