wopdvg
08-11-2004, 02:45 AM
Please help - I was wondering if anyone knows how to determine in Javascript which option of a select currently has the focus (as opposed to which item is selected).
The reason for this requirement is :
I have a select field on my page that has a fixed width (and cannot be changed), and the text for some options is too long so that the text is truncated and the user cannot see it all.
As the user moves the mouse over the options in the select field, after a small delay, I want to have a small popup window appear that displays the full text of the options.
The only difficult thing about this is - during the select's onmousemove event, I need to know what option currently has the focus.
Is this possible? Does anyone have a better solution???
Thanks
Daniel
The reason for this requirement is :
I have a select field on my page that has a fixed width (and cannot be changed), and the text for some options is too long so that the text is truncated and the user cannot see it all.
As the user moves the mouse over the options in the select field, after a small delay, I want to have a small popup window appear that displays the full text of the options.
The only difficult thing about this is - during the select's onmousemove event, I need to know what option currently has the focus.
Is this possible? Does anyone have a better solution???
Thanks
Daniel