The combo Object [I]

The combo object reflects a combo field in JavaScript.

Properties

  • enabled— A Boolean value indicating whether the combo box is enabled. (Not 2|3.)

  • form— A reference to the form object containing the combo box. (Not 2|3.)

  • listCount— An integer reflecting the number of elements in the list.

  • listIndex— An integer reflecting the index of the selected element in the list.

  • multiSelect— A Boolean value indicating whether the combo field is in multiselect mode.

  • name— A string value reflecting the name of the combo field.

  • value— A string containing the value of the combo field.

Methods

  • addItem(index)— Adds an item to the combo field before the item at index.

  • click()— Simulates a click on the combo field.

  • clear()— Clears the contents of the ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.