Jquery UI tool tip close icon
问题 I am trying to show Jquery UI tooltip on page load with a close/cross mark icon inside tool tip content. Tooltip should be closed on clicking X icon. I dont want to use any plugins. Please suggest logic. Tried the below code to hide tooltip after 5 seconds. var dur=5000; $(document).tooltip({ show:{ effect:'slideDown' }, track:true, open: function( event, ui ) { setTimeout(function(){ $(ui.tooltip).hide(); }, dur); } }); Tried below code to Show tooltip <!doctype html> <html lang="en"> <head>