| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>jQuery UI Tooltip - Default functionality</title> |
| 7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
| 8 | <link rel="stylesheet" href="../demos.css"> |
| 9 | <script src="../../external/requirejs/require.js"></script> |
| 10 | <script src="../bootstrap.js"> |
| 11 | $( document ).tooltip(); |
| 12 | </script> |
| 13 | <style> |
| 14 | label { |
| 15 | display: inline-block; |
| 16 | width: 5em; |
| 17 | } |
| 18 | </style> |
| 19 | </head> |
| 20 | <body> |
| 21 | |
| 22 | <p><a href="#" title="That's what this widget is">Tooltips</a> can be attached to any element. When you hover |
| 23 | the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.</p> |
| 24 | <p>But as it's not a native tooltip, it can be styled. Any themes built with |
| 25 | <a href="https://jqueryui.com/themeroller/" title="ThemeRoller: jQuery UI's theme builder application">ThemeRoller</a> |
| 26 | will also style tooltips accordingly.</p> |
| 27 | <p>Tooltips are also useful for form elements, to show some additional information in the context of each field.</p> |
| 28 | <p><label for="age">Your age:</label><input id="age" title="We ask for your age only for statistical purposes."></p> |
| 29 | <p>Hover the field to see the tooltip.</p> |
| 30 | |
| 31 | <div class="demo-description"> |
| 32 | <p>Hover the links above or use the tab key to cycle the focus on each element.</p> |
| 33 | </div> |
| 34 | </body> |
| 35 | </html> |