Wednesday, 28 August 2013

Do not close tooltip when input has focus after click

Do not close tooltip when input has focus after click

How can I make tooltip do not be closed if input has focus? It works when
it gets focus with tabs, but if I use mouse to focus on input, it tooltip
will be closed on mouseout.
I can do
$('input').tooltip().off("mouseover mouseout");
But this will dissable tooltip on hover and I just need to dissable
mouseout when #input has focus.
http://jsfiddle.net/3dX6d/2/
http://jsfiddle.net/3dX6d/3/

No comments:

Post a Comment