Javascript: Handling "select" tags event
-
Hello all, Lately i have been looking for a way to get the values (option[n].value) under the mouse (mouseover event) from a javascript function. But i failed miserably. I tried various possible events (onFocus, MouseOver ) but am not being able to get the value of a particular option. Its only giving me the one that is selected. I want to know the value of a particular item (ListItem / option ) which is under the mouse at a particular instance and want to change its colur. Any help/reference/Discussion wud be of real help. Thanks in advance.
-
Hello all, Lately i have been looking for a way to get the values (option[n].value) under the mouse (mouseover event) from a javascript function. But i failed miserably. I tried various possible events (onFocus, MouseOver ) but am not being able to get the value of a particular option. Its only giving me the one that is selected. I want to know the value of a particular item (ListItem / option ) which is under the mouse at a particular instance and want to change its colur. Any help/reference/Discussion wud be of real help. Thanks in advance.
As far I think you can not change any property of the combo box(select control) until the combo box menu is open. After selecting any item from the combo box menu you can change its any option item. If that is you want?
-
As far I think you can not change any property of the combo box(select control) until the combo box menu is open. After selecting any item from the combo box menu you can change its any option item. If that is you want?
Thanks for the reply mate. Even i found ways to raise event once a particular item is selected. But there must be "some" way to work upon a particular item , on the basis of mouseover event on a particular item. The comboBox must be selected indeed, but when its opened, then i want to raise event on "each" item within it as the mouce is moved over it. [What all i am looking for] One may notice that even the browser internally raises some event as the mouse is moved over the items. Since the item under the mouse is displayed in different color. There must be something like that in javascript as well.