I am trying to create a tooltip that shows the number of characters already typed as I progressively type text in a textarea. I want the tooltip (a div eleemnt) to follow the place where I type the character. I trap the onkeypress event and try to get its location to place the div element there. However, when I event.clientX and event.clientY give the location of the mouse cursor and not where I type. I know I trap get correct event because the event.keyCode always gives me the code of the character I just typed.
Any suggestions?
Thanks
Shai Inbar
Any suggestions?
Thanks
Shai Inbar