Try to use done() function in Jquery
.done(function( n ) { $( "p" ).append( n +" we're done." ); });
Following is Jquery documentation
Try to use done() function in Jquery
.done(function( n ) { $( "p" ).append( n +" we're done." ); });
Following is Jquery documentation