aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2014-04-24 13:48:15 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2014-04-24 13:48:15 +0200
commit1fa0c975867e1ba7d2a6097fcfbe0ea22160b968 (patch)
treec38f1bb867e3d499198afd622aa3dca51195b6de
parenta332256753ca7f3acf1eb8fc0fd007571d6e17e9 (diff)
downloadjquery-ui-1fa0c975867e1ba7d2a6097fcfbe0ea22160b968.tar.gz
jquery-ui-1fa0c975867e1ba7d2a6097fcfbe0ea22160b968.zip
Tooltip demo: Position tooltips next to inputs instead of over inputs
-rw-r--r--demos/tooltip/forms.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/tooltip/forms.html b/demos/tooltip/forms.html
index 296d004bd..804e3fc2b 100644
--- a/demos/tooltip/forms.html
+++ b/demos/tooltip/forms.html
@@ -27,7 +27,12 @@
</style>
<script>
$(function() {
- var tooltips = $( "[title]" ).tooltip();
+ var tooltips = $( "[title]" ).tooltip({
+ position: {
+ my: "left top",
+ at: "right+5 top-5"
+ }
+ });
$( "<button>" )
.text( "Show help" )
.button()