Detectar se o texto transbordar: as reticências estão ativas no campo de entrada
Eu estou querendo saber que há uma maneira de detectar setext-overflow:ellipsis
está ativo em um campo de entrada para que eu possa mostrar uma dica de ferramenta com o texto completo.
Css:
input[type='text']
{
text-overflow:ellipsis;
}
Html:
<input type="text" onmouseover="Tooltip.Show(this)" value="some long text" />
Javascript:
Tooltip.Show = function (input)
{
// This is where i need the see if the current input show ellipsis.
if ($(input).isEllipsisActive())
{
// Show the tooltip
}
}
BR
Andreas