Try It Editor
Tip: Press
Ctrl/⌘ + Enter
to Run
▶ Run
Reset
Copy
Download
Code
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Tooltip position Option</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"></script> <style> body{padding:60px;} </style> </head> <body> <span id="info" title="Tooltip appears to the right" style="cursor:pointer;text-decoration:underline;">Hover me</span> <script> $(function(){ $("#info").tooltip({ position: { my: "left+15 center", at: "right center" } }); }); </script> </body> </html>
Output