-2
You can specify the callback functions for both success and fail events in the ajaxSettings to handle the desired output as you described. Please refer to the 3 Ways to Set Tooltip Content under the "How to use" tab on page JavaScript Tooltip.