[ACCEPTED]-Display a fixed "ToolTip" when an input receives focus, using jQuery-jquery
Accepted answer
You could create your tooltip manually in 6 an element hidden with display:none
which would be shown 5 in a focus event handler.
$("input[id$=tbMyTextbox]").focus(function() {
$("div[id$=tooltip]").show();
});
$("input[id$=tbMyTextbox]").blur(function() {
$("div[id$=tooltip]").hide();
});
Another possibility 4 might be using the show option in qTip. I've 3 never used qTip, so this is purely theoretical 2 on my end, but you should be able to specify 1 show: { when: { event: 'focus' } }
in the options.
$(function() {
$("input[id$=tbMyTextbox]").qtip({
content: 'My Tooltip Text',
show: 'focus',
hide: 'blur'
});
});
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.