Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Javascript: Handling "select" tags event

Javascript: Handling "select" tags event

Scheduled Pinned Locked Moved ASP.NET
javascripthelpdiscussion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mani_iips
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • M mani_iips

      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.

      M Offline
      M Offline
      Moeez Ahmed
      wrote on last edited by
      #2

      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?

      M 1 Reply Last reply
      0
      • M Moeez Ahmed

        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?

        M Offline
        M Offline
        mani_iips
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups