5 May 2014

Dropdown events in javascript



  1.  onChange – Occurs after a value is selected from the dropdown.
  2.  onFocus – Occurs after the dropdown gains focus. It triggers the JavaScript event before the dropdown is opened.
  3. onBlur – Occurs after a value is selected from the dropdown and the focus is removed from it.
  4. onKeyDown – Occurs after a keyboard key is released when the dropdown is opened or when the dropdown has the focus.
  5. onKeyDown – Occurs after a keyboard key is pressed when the dropdown is opened or when the dropdown has the focus.
  6. onClick – Occurs after a dropdown is clicked.
  7. onMouseOver – Occurs after the dropdown is hovered with the mouse cursor.
  8. onMouseDown – Occurs after the dropdown is clicked. Works similar to the onClick event but it triggers the JavaScript event before the dropdown values are expanded.
  9.  onMouseUp – Occurs after the dropdown is clicked and the click button is released.

No comments:

Post a Comment