
RegExp
JavaScript Pocket Reference
|
111
Properties
defaultSelected
A read/write boolean that specifies whether the option is
initially selected when the Select object that contains it is
created or reset.
index
A read-only integer that specifies the index of the option
within the
options[] array of the Select object that contains it.
selected
A read/write boolean value that specifies whether an option is
currently selected. You can use this property to test whether a
given option is selected. You can also set it to select or dese-
lect an option. Note that when you select or deselect an
option in this way, the
Select.onchange() event handler is not
invoked.
text
A read/write string that specifies the text that appears to the
user for the option.
value
A read/write string that specifies the text that is passed to the
web server if the option is selected when the form is
submitted.
See Also
Select
RegExp
regular expressions for pattern matching
Core JavaScript 1.2; JScript 3.0; ECMA v3
Literal Syntax
/pattern/attributes
Constructor
new RegExp(pattern, attributes)
Regular expression patterns are expressed using a complex
grammar that is summarized earlier in this book.