Methods and Properties of the Select Object : JavaScript DHTML examples (example source code) » Form Control » Option Select ComboBox

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   Form Control   » [  Option Select ComboBox  ]   
 



Methods and Properties of the Select Object


/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 

ISBN: 067231763X
Publisher Sams CopyRight 2000


+------------+----------------+------------------------------------------+
  Type         Item             Description
+------------+----------------+------------------------------------------+
  Method
+------------+----------------+------------------------------------------+
               blur()           Removes the focus from the select box.
+------------+----------------+------------------------------------------+
               focus()          Gives the focus to the select box.
+------------+----------------+------------------------------------------+
               handleEvent()    Invokes the handler for the event specified; 
                                was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
  Property
+------------+----------------+------------------------------------------+
               form             Returns the entire form the select box is in.
+------------+----------------+------------------------------------------+
               length           Returns the number of options in the select box.
+------------+----------------+------------------------------------------+
               name             Returns the name of this select box, specified 
                                by the name attribute.
+------------+----------------+------------------------------------------+
               options          Returns an array containing each of the items 
                                in the select box. These items are created 
                                using the 'option' HTML tag. There are also 
                                length and selectedIndex subproperties of 
                                this property.
+------------+----------------+------------------------------------------+
               selectedIndex    Returns an integer specifying the indexed 
                                location of the selected option in the select box.
+------------+----------------+------------------------------------------+
               type             Returns the type of this select box specified 
                                by the type attribute. For 'select' instances 
                                that contain the multiple attribute, this 
                                property returns select-multiple. Instances 
                                without this attribute return select-one. 
                                This property was added in JavaScript 1.1.
+------------+----------------+------------------------------------------+
*/
Related examples in the same category
1.  Option selected index
2.  Auto Linked Option Listbox without button
3.  Change background
4.  Changing Select Element Content (two Combobox)
5.  Drop-down Redirect - No Submit button
6.  Drop-down Redirect - Submit
7.  Dropdown list (combobox) in a form
8.  dropdown list (combobox) in form 2
9.  Disable or enable an option
10.  Disable and enable a dropdown list (combobox)
11.  Return the name of the form that contains dropdown list (combobox)
12.  Number of options in the dropdown list(Combobox)
13.  Change the size of a dropdown list (ComboBox)
14.  Select multiple options in a dropdown list (option)
15.  Return the selected option as text in option
16.  Return the selected option as a number
17.  Change the option text
18.  Remove an option from a dropdown list (combobox)
19.  Properties of the Option Object
20.   Using the Location object to change another frame's URL
21.  Using a Summary Form to Support Local Processing
22.  Navigating with a SELECT Object
23.  Using the selectedIndex Property
24.   Modifying OPTGROUP Element Labels
25.  Using the options[index].text Property
26.   Using the options[index].value Property
27.  Triggering a Color Change from a Pop-Up Menu
28.  Modifying SELECT Options
29.  Modifying SELECT Options (IE4+)
30.  Modifying SELECT Options (NN6+)
31.  Selecting an Option Using JavaScript
32.  Linked ComboBox (option) Country =- province
33.  ComboBox set value to TextField
34.  Menu(Option) Generator
35.  URL Option ComboBox
36.  Show Selected Option items








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.