Detectar si hay desbordamiento de texto: los puntos suspensivos están activos en el campo de entrada
Me pregunto si hay una manera de detectar sitext-overflow:ellipsis
está activo en un campo de entrada para que pueda mostrar una información sobre herramientas con el texto completo.
Css:
<code>input[type='text'] { text-overflow:ellipsis; } </code>
HTML:
<code><input type="text" onmouseover="Tooltip.Show(this)" value="some long text" /> </code>
Javascript:
<code>Tooltip.Show = function (input) { // This is where i need the see if the current input show ellipsis. if ($(input).isEllipsisActive()) { // Show the tooltip } } </code>
BR
Andreas