While applying tooltip on textbox , it coming fine the only problem is that i have an issue in handing the position of arrow according to content in title attribute. For short title arrow is coming fine(middle of textbox) but for long title the arrow is going up to the textbox. Here is the JSFiddle code link:
$(function() {
$( document ).tooltip({
position: {
my: "left center",
at: "right+10 center",
using: function( position, feedback ) {
$( this ).css( position );
$( "<div>" )
.addClass("arrow")
.addClass(feedback.vertical)
.addClass(feedback.horizontal)
.appendTo( this );
}
}
});
});
You don't need to add the extra class
arrow
to the tooltip. You can use the:before
pseudo class on the class.ui-tooltip
.Also check this the updated Fiddle.