I have this function
$.ajax({
type: 'GET',
url: myurl,
success: function (data) {
$('#dialog-confirm').html(data);
$('#dialog-confirm').dialog('open');
}
});
I want that second function in success executes after first one is complete. how can i do that
It does, because
.htmlis synchronous.If it’s not doing that then we need more information.