Thanks very much, but I have a few problems in my implementation, not sure if you can help:
The main purpose of this is to use it for multiline-textbox where the space is limited and it is a readonly field, so the user will see the beginning of the text, but can mouseover so see the full text with carriage returns etc
http://jsfiddle.net/seKvb/35/'
1) The first time you mouseover, the tooltip is offset to the right
2) I cannot get the carriage returns to be converted to <br>
3) I want to prevent the tooltip from showing at all if value is null, now it shows for a second and then hides.
4) when using icon in multiline box, the gray textarea 'border' appears on the right of the textbox.
$('input.valuetip').css('text-overflow','ellipsis').each(function(){
$(this).textbox({icons:[{iconCls:'icon-info'}]}).textbox('getIcon',0).tooltip({
onShow:function(e){
var val = $($(this)[0]).closest('.textbox').prev('input').textbox('getValue').replace(/(\r\n|\n|\r)/g,"<br />");
if(!val) $(this).tooltip('hide');
else $(this).tooltip('update','<span class="vtip">'+val+'</span>');
}
});
})