Wykryj, jeśli przepełnienie tekstem: elipsa jest aktywna w polu wprowadzania
Zastanawiam się, czy istnieje sposób na wykrycie, czytext-overflow:ellipsis
jest aktywny w polu wprowadzania, więc mogę pokazać podpowiedź z pełnym tekstem.
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