Skip to content

Commit 1fa0c97

Browse files
committed
Tooltip demo: Position tooltips next to inputs instead of over inputs
1 parent a332256 commit 1fa0c97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

demos/tooltip/forms.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
</style>
2828
<script>
2929
$(function() {
30-
var tooltips = $( "[title]" ).tooltip();
30+
var tooltips = $( "[title]" ).tooltip({
31+
position: {
32+
my: "left top",
33+
at: "right+5 top-5"
34+
}
35+
});
3136
$( "<button>" )
3237
.text( "Show help" )
3338
.button()

0 commit comments

Comments
 (0)